• 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: Booleans in AS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Booleans in AS


  • Subject: Re: Booleans in AS
  • From: Ed Stockly <email@hidden>
  • Date: Wed, 6 Mar 2002 09:12:57 -0800

the script reads:
make new folder at folder myPath with properties {name:2output2}
And I get an error if that folder already exists.

>> Emmanuel >>Isn't that a test? In AppleScript, an error is not a
mistake ... You can
trap it and handle it, so you may use it as a test.

Not in this case. With this command if a folder or a file exists with
that name an untrapable error results and a dialog is displayed in the
user interface. If the finder is not frontmost is appears in the
background and sometimes locks things up so solidly you've got to do a
force quit.<grrrrr>

To resolve this your script should make sure that no item exists in that
directory with that name. It's also a good idea to make sure the name
is less than 31 characters to avoid another potential untrapable user
interface error dialog.

ES
_______________________________________________
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.

  • Prev by Date: Re: Booleans in AS
  • Next by Date: Re: script object properties: seeking confirmation
  • Previous by thread: Re: Booleans in AS
  • Next by thread: Re: Booleans in AS
  • Index(es):
    • Date
    • Thread