• 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: Ending/Aborting/Exiting A Script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ending/Aborting/Exiting A Script?


  • Subject: Re: Ending/Aborting/Exiting A Script?
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Mon, 13 Mar 2006 19:06:06 +1100


On 13/03/2006, at 6:53 PM, chuck5566 wrote:

I"ve been looking tonight, but haven't been able to find a clean way to end the execution of a script.


set fromtext to the text returned of (display dialog "Find what:" default answer "" with title "Track Name Find/Replace")
if fromtext is "" then return




you can always return a value which is handy in try blocks

try
	err(param)
	err()
on error m number n
	return {m, n}
end try

to err()
	return -128
end err

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Ending/Aborting/Exiting A Script? (From: chuck5566 <email@hidden>)

  • Prev by Date: Ending/Aborting/Exiting A Script?
  • Next by Date: Re: Build Development versus Deployment changes results of simple Applescript lines
  • Previous by thread: Ending/Aborting/Exiting A Script?
  • Next by thread: Extracting text from an Retrospect Log
  • Index(es):
    • Date
    • Thread