• 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: Iurista GmbH <email@hidden>
  • Date: Fri, 17 Apr 2015 17:09:47 +0200

I use since long this system in Snow Leopard (may be system dependent?)

set x to alias "Ablage:Zentrale Dienste:Fax Services"--your folder path goes here

tell application "Finder"
	if exists window of x then
		close window of x
	else
		open x
	end if
end tell



Am 12.04.2015 um 23.19 schrieb Robert Poland:

>
>> On Apr 12, 2015, at 2:54:PM, Christopher Stone <email@hidden> wrote:
>>
>> 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
>
> Chris,
>
> I must be dense. Neither i nor my computer get what you are getting at???
>
> 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


 _______________________________________________
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: 
 >Detect if folder is open/closed (From: Robert Poland <email@hidden>)
 >Re: Detect if folder is open/closed (From: Christopher Stone <email@hidden>)
 >Re: Detect if folder is open/closed (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: Scripting Terminal ?
  • Next by Date: Re: OS 10.2.3 Applescript Editor gone.
  • Previous by thread: Re: Detect if folder is open/closed
  • Next by thread: Re: Detect if folder is open/closed
  • Index(es):
    • Date
    • Thread