• 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
Behavior change in "open for access" from AS 1.6 to 1.8.3?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Behavior change in "open for access" from AS 1.6 to 1.8.3?


  • Subject: Behavior change in "open for access" from AS 1.6 to 1.8.3?
  • From: email@hidden
  • Date: Fri, 5 Jul 2002 00:45:53 EDT

Dunno what else to blame it on, but since updating from AS 1.6 to 1.8.3,
I've found an error in one of my scripts that makes me wonder if I've
encountered a significant change in behavior for the "open for access"
command.

In a "try" block, I had the line (where thPath was a string):
--
set thRef to (open for access thPath without write permission)
--

When there was NOT such a file, the error number was -43, which I trapped
and the script continued, noting that the file in question did not exist
(which, in my case, meant there were no "to do" entries for a given day).

Since upgrading to 1.8.3, if the file doesn't exist, the same script line
returns a -39 error:
(*End of file error., -39*)
AND (here's the rub . . . ) it creates an empty file!

Is this a known (and intended) change?

TIA,

Dan Feather




=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-=- Dan at featherweightstuff dot 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.

  • Prev by Date: Re: Scripts inside Scripts
  • Next by Date: Re: Behavior change in "open for access" from AS 1.6 to 1.8.3?
  • Previous by thread: RE: Photoshop 7 dictionary
  • Next by thread: Re: Behavior change in "open for access" from AS 1.6 to 1.8.3?
  • Index(es):
    • Date
    • Thread