Re: ScriptMenu widget (fix for: script to edit personal scirptmenu scripts)
Re: ScriptMenu widget (fix for: script to edit personal scirptmenu scripts)
- Subject: Re: ScriptMenu widget (fix for: script to edit personal scirptmenu scripts)
- From: Dan Belfiori <email@hidden>
- Date: Thu, 14 Feb 2002 08:24:10 -0800
on 2/14/02 7:30 AM, Dan Belfiori:
>
I've removed the orginal folders from script menu. They were located in (OSX
>
startup disk)/Library/Scripts.
>
>
I've added the following script to my "~/Library/Scripts/" folder so that I
>
can quickly edit the scriptmenu scripts. The script below will allow you to
>
choose a script from scriptmenu scripts and it will open in Script Editor.
sorry previous "Open" script was too personalized and other errors.
set dfold to path to desktop
tell application "Finder"
set pfold to folder of dfold
set sfold to (pfold as text) & "Library:Scripts"
set mlist to name of every file of folder sfold
end tell
tell current application ,
to set Flist to choose from list mlist ,
with prompt "Open item in Script Editor"
tell application "Finder"
try
set fname to item 1 of Flist
set Flist to every file ,
of folder sfold whose name is fname
set ffile to item 1 of Flist
on error
set ffile to ""
end try
end tell
if ffile is not "" then tell application "Finder" to open ffile as alias
_______________________________________________
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.