• 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: Editing droplets...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Editing droplets...
      • From: Jon Pugh <email@hidden>
References: 
 >Re: Editing droplets... (From: Doug McNutt <email@hidden>)

  • Prev by Date: Why can't it get [file] from list of files??
  • Next by Date: Re: Why can't it get [file] from list of files??
  • Previous by thread: Re: Editing droplets...
  • Next by thread: Re: Editing droplets...
  • Index(es):
    • Date
    • Thread