Re: Opening SD's EnclosingFolder
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.