• 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: Yvan KOENIG <email@hidden>
  • Date: Tue, 6 Apr 2010 22:00:18 +0200

As I'm not fond of open for access, I use this kind of code :

to CreateFixFile(versionStr, mailBody)
set myFileName to ("Fix List for " & versionStr & ".htm")
set p2d to (path to desktop as string)
set myFile to p2d & myFileName
if exists file myFile then
set eof of file myFile to 0
else
tell application "System Events" to make new file at end of folder p2d with properties {name:myfilename}
end if
write mailBody as string to file myFile
end CreateFixFile

Yvan KOENIG (VALLAURIS, France) mardi 6 avril 2010 22:00:04


 _______________________________________________
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: 
 >What should be a simple question, I think about creating a file.... (From: "OSullivan, Steven" <email@hidden>)
 >Re: What should be a simple question, I think about creating a file.... (From: Michelle Steiner <email@hidden>)
 >Re: What should be a simple question, I think about creating a file.... (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: What should be a simple question, I think about creating a file....
  • Next by Date: Slow Command in Snow Leopard
  • Previous by thread: Re: What should be a simple question, I think about creating a file....
  • Next by thread: How come the ip address of system info is wrong?
  • Index(es):
    • Date
    • Thread