• 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
Prematurely quitting script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Prematurely quitting script?
      • From: Dave Balderstone <email@hidden>
    • Re: Prematurely quitting script?
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Hide/Show Invisibles
  • Next by Date: Scripting toggle of crossfade in iTunes?
  • Previous by thread: Re: Hide/Show Invisibles
  • Next by thread: Re: Prematurely quitting script?
  • Index(es):
    • Date
    • Thread