Re: Editing droplets...
Re: Editing droplets...
- Subject: Re: Editing droplets...
- From: Stephen Swift <email@hidden>
- Date: Tue, 07 May 2002 22:10:47 -0400
At 5/7/02 9:14 PM, Doug McNutt (email@hidden) Wrote:
>
> tell application "Finder"
>
> open theFile using file "Mezzanine!:Applications:Script Debugger
>
> 3.0:Script Debugger"
>
> end tell
>
>
If it doesn't fail because the file is already open I'll be upset.
But, Mr. Tea inspired me to add this code to my droplets:
on run
error "Did you want to edit me?"
end run
Now I can double-click my droplet and then press the edit button. And if I
wanted to go even further, using Jon's commands, I could edit all my script
applications if I added this code:
on run
if (keys pressed) = {"command"} then
error "Did you want to edit me?"
else
display dialog "my script"
end if
end run
But, how hard is it to drag my script onto script editor? :-)
Stephen Swift
email@hidden
-----------------------------------------------
AppleScript Guru - The Mac Observer
http://www.macobserver.com/tips/applescript
_______________________________________________
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.