• 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: Arthur J Knapp <email@hidden>
  • Date: Tue, 05 Mar 2002 16:41:28 -0500

> Date: Tue, 05 Mar 2002 07:58:28 -0700
> Subject: Opening SD's EnclosingFolder
> From: Gnarlodious <email@hidden>

> Did someone write a script for Script Debugger's script menu that will open
> the enclosing Finder window of the frontmost script?

This should do the trick:

try
set file_spec to file spec of document of script window 1
on error
beep (1) --> indicate error, your code here
error number -128 -- stop
end try

if (file_spec = missing value) then
beep (1) --> document is "untitled #"
error number -128 -- stop
end if

tell application "Finder"

activate
reveal file_spec

end tell


{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
<mailto:email@hidden>
try
<http://www.VivaLaData.com/>
on error number -128
end try
}
_______________________________________________
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.

  • Prev by Date: Re: Eps Profiles
  • Next by Date: Re: Opening SD's EnclosingFolder
  • Previous by thread: Re: Opening SD's EnclosingFolder
  • Next by thread: Re: Opening SD's EnclosingFolder
  • Index(es):
    • Date
    • Thread