• 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: can i 'store script' as stay open applet?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can i 'store script' as stay open applet?


  • Subject: Re: can i 'store script' as stay open applet?
  • From: "Bob.Kalbaugh" <email@hidden>
  • Date: Wed, 05 Sep 2001 20:28:23 -0500

on 9/5/01 8:20 PM, I wrote:

> If you want to have a little dangerous fun...

I had meant to add:

...dangerous because the script I provided did not have any traps for
errors.

sorry,

bob


> create a dummy script with the line... beep 2 or something like that
>
> save it as an stay open applet to your desktop and call it "ShellApp" then
> play with this script from the script editor.
>
>
> set appPath to "HD:Desktop Folder:shellApp"
> set thePath to "HD:"
> tell application "Finder"
> duplicate file appPath to startup disk with replacing
> set name of result to "My New App"
> set theNewApp to (thePath & "My New App") as text
> end tell
>
> script newScript
> on ddialog(theMsg)
> beep 2
> display dialog theMsg
> end ddialog
> end script
>
> store script newScript in file theNewApp with replacing
>
> set theMsg to "I'm Working..."
>
> tell application theNewApp to activate
> tell application theNewApp to ddialog(theMsg)
> tell application theNewApp to quit
>
> have fun!
>
> --
> bob.kalbaugh


References: 
 >Re: can i 'store script' as stay open applet? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: RE: OneClick and QuicKeys {WAS: OSA Menu Lite]
  • Next by Date: Re: can i 'store script' as stay open applet?
  • Previous by thread: Re: can i 'store script' as stay open applet?
  • Next by thread: Re: can i 'store script' as stay open applet?
  • Index(es):
    • Date
    • Thread