Re: A Subtle Error
Re: A Subtle Error
- Subject: Re: A Subtle Error
- From: Christopher Stone <email@hidden>
- Date: Sun, 16 Jan 2011 09:48:57 -0600
On Jan 16, 2011, at 09:23, Luther Fuller wrote: Snow Leopard Finder understands 'write ...', but Leopard Finder does not. But, which system version has the problem? (Where's the bug?)
______________________________________________________________________
Hey Luther,
Hmm. 'write' is from the StandardAdditions.osax.
I don't have Leopard available to test at the moment, but this works fine on 10.6.6:
set f to "" & (path to desktop) & "Test File.txt" tell application "Finder" try set fileNum to open for access f with write permission write "Some Text" to fileNum starting at eof write return & "Some More Text" & return to fileNum close access fileNum on error errMsg number errNum try close access fileNum end try beep display dialog "Error: " & errMsg & return & "Error Number: " & errNum end try end tell
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden