|Jun 24, 2009, 08:37 PM||#1|
Applescrip help, Please. My head hurts.
I'm trying to tell the Finder to do the following please read and/or reenact the following with 2 finder windows open.
Switch from window 1 to 2
close window 1.
^ Thats based on there being < 1 windows. Code -
If the above code looks like its missing stuff, heres the full code.
The problem i am having is the first bit works, but getting Finder to see if theres more than 2 windows open then closing them all does not.
Full code -
|Jun 24, 2009, 09:02 PM||#2|
This should work:
tell application "Finder" activate set numWindowsOpen to count each window if (numWindowsOpen is equal to 2) then close window 1 else if (numWindowsOpen is greater than 2) then close every window make new Finder window end if end tell
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Help please. my headphones broke inside my imac audio jack||Shahe||OS X||4||May 10, 2010 04:38 AM|
|My Head Hurts - Upgrading to HD on new iMac||Mac'nCheese||Digital Video||6||Apr 22, 2010 06:50 PM|
|Optoma Projector + Macbook = My Head Hurts||bhillery||MacBook||2||Mar 18, 2010 11:38 AM|
|Help please. My icons are blank after a finder quit||petersmall||Mac Applications and Mac App Store||3||Jan 24, 2004 02:52 PM|
All times are GMT -5. The time now is 01:53 AM.