Re: can i 'store script' as stay open applet?
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