• 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: XPress: error checking snip slows script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XPress: error checking snip slows script


  • Subject: Re: XPress: error checking snip slows script
  • From: JJ <email@hidden>
  • Date: Thu, 14 Jun 2001 16:14:10 +0200

> This snip slows down my script. Why?
> (*
> if selection /= null then
> set currentSelection to current box
> else
> display dialog "No selection, try again."
> return
> end if
> *)

"Slow"? How much?
An alternative:

(*
set currentSelection to current box
if currentSelection = null then
display dialog "No selection, try again."
return
end if
*)

Your script, tested on my machine, (exists selection, events registry):
get selection of document 1
get current box of document 1

The alternative (exists selection, events registry):
get current box of document 1


  • Prev by Date: Re: Script to copy changed files?
  • Next by Date: Re: How to 'load' osaxen
  • Previous by thread: Re: simple question
  • Next by thread: Opening Hidden Folders in Finder
  • Index(es):
    • Date
    • Thread