• 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: A Subtle Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

--
Chris
 _______________________________________________
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

References: 
 >A Subtle Error (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: A Subtle Error
  • Next by Date: Re: What is class furl?
  • Previous by thread: A Subtle Error
  • Next by thread: Re: A Subtle Error
  • Index(es):
    • Date
    • Thread