• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detect if folder is open/closed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detect if folder is open/closed


  • Subject: Re: Detect if folder is open/closed
  • From: Robert Poland <email@hidden>
  • Date: Sun, 12 Apr 2015 07:56:47 -0600
  • Z-usanet-msgid: XID333TDLN5W2496X32

> On Apr 12, 2015, at 7:12:AM, Thomas Fischer <email@hidden> wrote:
>
> Hello,
>
> this and other solutions presented may not quite do what you want when the respective folder window is part of a tabbed window of folders.
> If it is not the active tab the script will bring the tab to the front, but it seems that if it is active, the finder will close this and all other tabs of this windows.
> Does this matter?
> Actually I don't see how Finder tabs can be handled through AppleScript.
>
> Best regards
> Thomas Fischer

I don’t see any use for Tabs. In fact I also keep most Sidebars turned off.

> Am 11.04.2015 um 21:59 schrieb email@hidden:
>
>> Hello.
>>
>> The line below can be simplified a little, since the path is on the desktop, which is
>> Finder’s home directory.
>>> set scansFolder to ((path to desktop as text) & "scans~ƒ") as alias
>>
>> So you could end up with something like this, which is less to type and should at least not
>> execute any slower. I have modified Nigel’s clever solution to implement it, if not for anything else than as a proof of concept.
>>
>> tell application "Finder"
>> 	activate
>> 	set scanWindow to (folder "scans~ƒ")'s container window
>> 	if (scanWindow exists) then
>> 		close scanWindow
>> 	else
>> 		open scanWindow -- or open scansFolder
>> 	end if
>> end tell
>>
>> Regards
>>
>> Tommy/McUsr

Robert Poland
Fort Collins CO


 _______________________________________________
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


References: 
 >Re: Detect if folder is open/closed (From: Nigel Garvey <email@hidden>)
 >Re: Detect if folder is open/closed (From: email@hidden)
 >Re: Detect if folder is open/closed (From: Thomas Fischer <email@hidden>)

  • Prev by Date: Re: Detect if folder is open/closed
  • Next by Date: Re: Detect if folder is open/closed
  • Previous by thread: Re: Detect if folder is open/closed
  • Next by thread: automatic create short cut
  • Index(es):
    • Date
    • Thread