• 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: Problems Writing to a File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems Writing to a File


  • Subject: Re: Problems Writing to a File
  • From: Yvan KOENIG <email@hidden>
  • Date: Thu, 10 Nov 2005 19:34:15 +0100

Hello

The Finder is unable to open a string as you are trying to do.
I assume that this revised handler will work:


on writeFile(theFilePath, theContent)
tell application "Finder"
set f to (open for access alias theFilePath with write permission) -- edited
write theContent to f
close access f
end tell
end writeFile


Yvan KOENIG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Problems Writing to a File
      • From: Steve Suranie <email@hidden>
    • Re: Problems Writing to a File
      • From: Michelle Steiner <email@hidden>
References: 
 >Problems Writing to a File (From: Steve Suranie <email@hidden>)

  • Prev by Date: Problems Writing to a File
  • Next by Date: Re: Adding additional headers to new outgoing Mail message?
  • Previous by thread: Problems Writing to a File
  • Next by thread: Re: Problems Writing to a File
  • Index(es):
    • Date
    • Thread