• 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: What should be a simple question, I think about creating a file....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What should be a simple question, I think about creating a file....


  • Subject: Re: What should be a simple question, I think about creating a file....
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 6 Apr 2010 11:26:33 -0700

On Apr 6, 2010, at 10:58 AM, OSullivan, Steven wrote:

to CreateFixFile(versionStr, mailBody)
    
set myFileName to ("Fix List for " & versionStr & ".htm") as string
   tell application "Finder" to set myFile to ((path to desktop as string) & myFileName) as alias
   write mailBody as string to myFile
   
close access
end CreateFixFile

Here you go:

to CreateFixFile(versionStr, mailBody)
set myFileName to ("Fix List for " & versionStr & ".htm")
set myFile to (open for access (path to desktop as string) & myFileName with write permission)
write mailBody as string to myFile
close access myFile
end CreateFixFile

-- Michelle

--
Those who extol the "nobility of labor" mean the labor of others.

 _______________________________________________
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

  • Follow-Ups:
    • Re: What should be a simple question, I think about creating a file....
      • From: Doug McNutt <email@hidden>
References: 
 >What should be a simple question, I think about creating a file.... (From: "OSullivan, Steven" <email@hidden>)

  • Prev by Date: What should be a simple question, I think about creating a file....
  • Next by Date: Re: Talking to IMAP folder in Entourage
  • Previous by thread: What should be a simple question, I think about creating a file....
  • Next by thread: Re: What should be a simple question, I think about creating a file....
  • Index(es):
    • Date
    • Thread