Re: Detect if folder is open/closed
Re: Detect if folder is open/closed
- Subject: Re: Detect if folder is open/closed
- From: Christopher Stone <email@hidden>
- Date: Sun, 12 Apr 2015 15:54:48 -0500
On Apr 11, 2015, at 09:20, Robert Poland <email@hidden> wrote:I would like to detect if that folder is already open and use the same shortcut to close it. Even if there are many other folders open.
______________________________________________________________________
Hey Bob,
Just for giggles. :)
------------------------------------------------------------- set scanFldr to alias ((path to documents folder as text) & "Pending:") tell application "Finder" set scanFldrWin to scanFldr's container window if scanFldrWin exists then return close scanFldrWin open scanFldr end tell -------------------------------------------------------------
-- Best Regards, Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden