File with no path doesn't work
File with no path doesn't work
- Subject: File with no path doesn't work
- From: email@hidden
- Date: Sat, 29 Jun 2002 01:48:37 -0400
I thought 1.8.3 would fix the problem I'll describe, but it didn't. And now I
think I'm just overlooking something obvious, but I can't think what it might
be.
The simple problem is to open a file in the same directory as the script,
creating a new file if one doesn't exits. This is best illustrated with the
following simple script:
open for access file "test123" with write permission
close access result --clean up if the 'open' succeeds.
Under Mac OS 9.2.2 and AppleScript 1.8.3, I get the error message,
'File "test123" was not found' and an error code -43 (if I wrap the 'open' in a
'try' block).
The same script works just fine in OS 8.6 and AppleScript 1.3.7.
If I change the path to be include the disk,
open for access file "OS 9:test123"
everything works fine and the file is created.
Why won't the file created without an absolute path work right? I've removed
Akua Sweets and Jon's Commands, on the chance that their coercions were
interfering, but that made no difference.
This isn't just of academic interest. The AppleScripts that are part MultiMail
Conduit use these sort of 'open for access' calls to interact with Outlook
Express and the other mailer programs. So I can't just rewrite the failing
scripts to use some other path; I have to reengineer the whole system of conduit
+ scripts.
Hey, I just noticed that ActualSoft, MultiMail's author, is now part of Palm.
So I guess this will be an item of interest for the Other, Other Chris [Page].
--
Scott Norton Phone: +1-703-299-1656
DTI Associates, Inc. Fax: +1-703-706-0476
2920 South Glebe Road Internet: email@hidden
Arlington, VA 22206-2768 or email@hidden
_______________________________________________
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.