• 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: Opening SD's EnclosingFolder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening SD's EnclosingFolder


  • Subject: Re: Opening SD's EnclosingFolder
  • From: Paul Berkowitz <email@hidden>
  • Date: Tue, 05 Mar 2002 09:34:45 -0800

On 3/5/02 6:58 AM, "Gnarlodious" <email@hidden> wrote:

> Did someone write a script for Script Debugger's script menu that will open
> the enclosing Finder window of the frontmost script?
> Thanks
>
That's easy enough, if you look in SD's Dictionary: you have to set the
Preference to enable SD' s Dictionary first. Then, in 'document', you'll
find the 'file spec' property:

set fileSpec to file spec of window 1
tell application "Finder"
activate
open container of fileSpec
end tell

Or you could get a little fancier:

try
set fileSpec to file spec of window 1
on error
beep
display dialog "The front window is not a saved script." with icon 0
return
end try
tell application "Finder"
activate
open container of fileSpec
select {fileSpec}
end tell


--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Opening SD's EnclosingFolder (From: Gnarlodious <email@hidden>)

  • Prev by Date: Sending Apple Event Calls - cries of a beginner
  • Next by Date: Re: Recorder in OS X
  • Previous by thread: Opening SD's EnclosingFolder
  • Next by thread: Re: Opening SD's EnclosingFolder
  • Index(es):
    • Date
    • Thread