• 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: How to quit an applescript this way?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to quit an applescript this way?


  • Subject: Re: How to quit an applescript this way?
  • From: kim <email@hidden>
  • Date: Fri, 20 Jul 2001 08:36:09 +1200

G'day Dave

>I have a script that reads a text file
>and if the script reads "Cancelled"
>without quotes of course
>I want my script to quit running.

set cancelcheck to textnote
if cancelcheck = "Cancelled" then
return
error number -128
else
-- do whatever
end if

cheers

kim


  • Prev by Date: Re: View every folder of a folder by name
  • Next by Date: Saving info to a newly created text file from within a script
  • Previous by thread: How to quit an applescript this way?
  • Next by thread: Scripting Wait Times
  • Index(es):
    • Date
    • Thread