• 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: Michelle Steiner <email@hidden>
  • Date: Thu, 10 Nov 2005 11:56:21 -0700

On Nov 10, 2005, at 11:34 AM, Yvan KOENIG wrote:

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

set f to (open for access alias theFilePath with write permission) -- edited

That won't work; unless the file already exists, there will be a compile error when the compiler tries to resolve the alias. The word "file" would work, but it is not necessary because the compiler will force a type cast from string to file designator.


-- Michelle

--
Don't anthropomorphize computers.  They hate that.

_______________________________________________
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


References: 
 >Problems Writing to a File (From: Steve Suranie <email@hidden>)
 >Re: Problems Writing to a File (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Problems Writing to a File
  • Next by Date: Re: Problems Writing to a File
  • Previous by thread: Re: Problems Writing to a File
  • Next by thread: Re: Problems Writing to a File
  • Index(es):
    • Date
    • Thread