• 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: open for access error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open for access error


  • Subject: Re: open for access error
  • From: Emmanuel <email@hidden>
  • Date: Mon, 11 Feb 2002 11:33:35 +0100

At 11:45 PM +0100 10/2/02, Matt wrote:
>
>I'm trying that, but I need to concatenate a path (folder) to the file to
>write, so maybe a better question would be:
>How do I write a file that doesn't exist to a known path and have it be
>created. I'm thinking the following is the general idea:
>set theDir to alias (path to desktop as string)
>set theFile to "newfile.txt"
>set fref to (open for access (theDir & theFile) with write permission)
>close fref

You really need the word "file" (as in hcir's post).

-------------------------
set fref to (open for access file ((theDir as text) & theFile) with ...)
-------------------------

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: open for access error (From: hcir <email@hidden>)

  • Prev by Date: Re: Since Apple Listens to this List...
  • Next by Date: Re: Create a folder with today's date as the folder name
  • Previous by thread: Re: open for access error
  • Next by thread: Re: open for access error
  • Index(es):
    • Date
    • Thread