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

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


  • Subject: What should be a simple question, I think about creating a file....
  • From: "OSullivan, Steven" <email@hidden>
  • Date: Tue, 06 Apr 2010 10:58:59 -0700
  • Thread-topic: What should be a simple question, I think about creating a file....

Title: What should be a simple question, I think about creating a file....
Howdy folks,

It has been awhile since I have had time to work with AS, and my time away is painfully obvious....

I hope that someone ‘out there’ will have the time to assist in this small (yet seemingly monumental) task....

I am attempting to write handler that will take in two string values and use them to create a text file in a specific directory, and am failing consistently. I have been working with “AppleScript 123” (basically using an excellent textbook as a reference) and “AppleScript: The Definitive Guide”, and the web....

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

This returns the error: error "File 10.6.3:Users:admin:Desktop:Fix List for 1.0.0.0.htm wasn’t found." number -43 from "10.6.3:Users:admin:Desktop:Fix List for 1.0.0.0.htm"

If a generous sould could point me in the right direction, I would surely appreciate the assistance.

Regards,

Steve O’Sullivan
 _______________________________________________
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: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Talking to IMAP folder in Entourage
  • Next by Date: Re: What should be a simple question, I think about creating a file....
  • Previous by thread: Re: Talking to IMAP folder in Entourage
  • Next by thread: Re: What should be a simple question, I think about creating a file....
  • Index(es):
    • Date
    • Thread