• 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
Very basic "write to file" query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Very basic "write to file" query


  • Subject: Very basic "write to file" query
  • From: email@hidden
  • Date: Wed, 4 Feb 2004 18:27:30 +0000

Hi all,

Does the following snippet work in Jaguar?
It works fine in Panther... and someone is getting error "(-48)
duplicate filename" in Jaguar.
I'm running Panther, so I can't really check it.

try
set file_ to ((path to desktop) & "test file") as Unicode text
open for access file_ write permission 1
copy the result to file_reference
write "test" starting at 0 to file_reference
close access file_reference
on error err_msg
close access file file_
display dialog err_msg buttons {"-"} default button 1
end try

--
DP
_______________________________________________
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.

  • Follow-Ups:
    • Re: Very basic "write to file" query
      • From: Richard Morton <email@hidden>
    • Re: Very basic "write to file" query
      • From: Michelle Steiner <email@hidden>
    • Re: Very basic "write to file" query
      • From: Shane Stanley <email@hidden>
    • Re: Very basic "write to file" query
      • From: Doug McNutt <email@hidden>
  • Prev by Date: FileMaker Send Apple Event to run stay open app
  • Next by Date: Re: Very basic "write to file" query
  • Previous by thread: Re: FileMaker Send Apple Event to run stay open app
  • Next by thread: Re: Very basic "write to file" query
  • Index(es):
    • Date
    • Thread