Very strange behavior with open for access
Very strange behavior with open for access
- Subject: Very strange behavior with open for access
- From: Luc Naets <email@hidden>
- Date: Fri, 24 May 2002 16:31:00 +0200
Hi,
I'm experiencing a very strange behavior when trying to use the read/write
commands from the standard Apple-suite.
I'm running osX 10.1.4 with applescript 1.8.2
When running the following very basic script the first time everything goes
fine
set mFile to (path to desktop as string) & "TestFile"
set mFileID to open for access mFile with write permission
write "HELLO" to mFileID
close access mFileID
When running the same script a second time I get the error:
'Duplicate file name. Adm08:Users:lucnaets:Desktop:TestFile'
The only additions in the System/Library/ScriptingAdditions folder are
URL Access Scripting
system.osax
StandardAdditions.osax
Image Capture Scripting
FontSyncScripting
ColorSyncScripting
and in the Library/ScriptingAdditions are
GraphicsImporter OSAX.osax
Adobe Unit Types
Acme Script Widgets.osax
XML Tools.osax
Can somebody explain why this is happening, trying to do teh same thing in
the classic environment works fine.
--
Luc Naets
PrePress XTensions
Antwerpsestraat 108-116
2640 Mortsel
Tel 03 448 21 51 - Fax 03 448 21 50
_______________________________________________
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.