Prematurely quitting script?
Prematurely quitting script?
- Subject: Prematurely quitting script?
- From: Mike Zornek <email@hidden>
- Date: Mon, 08 Dec 2003 13:39:51 -0500
I'm writing an AppleScript (first one) that will help me "pack" and "unpack"
my iPod with various files and folders I am using across my home iMac and
work PowerMac such as:
* the 'Microsoft User Data" folder
* SpamSieve's Application Support folder and preference file
* NetNewsWire's Application Support folder and preference file
I currently do this manually and it's a chore that can (and probably should
be) automated.
At the beginning of my script I check to see if my iPod is connected using:
set iPodName to "Zorn's iPod" as string
tell application "Finder"
if (exists disk iPodName) then
display dialog "I found it!" buttons {"OK"} default button "OK"
else
display dialog iPodName & " was not found. Please connect it and
relaunch script." buttons {"Quit"} default button "Quit"
end if
end tell
I'd like to add some kind of command that would quit this script after the
warning about how it couldn't find the iPod. How would I do this? If I use
"quit" it seems to quit the Finder.
~ Mike
Web Designer, Media Developer, Programmer and Geek
http://MikeZornek.com
_______________________________________________
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.