• 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 with write permission
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open for access with write permission


  • Subject: Re: Open for access with write permission
  • From: John Baltutis <email@hidden>
  • Date: Thu, 22 Mar 2007 17:59:18 -0700

On 03/22/07, Michelle Steiner <email@hidden> wrote:
>
> This should be a simple thing:
>
> set UserFile to choose file with prompt "Please choose the dictionary
> file to add the words to."
> set fileRef to open for access UserFile with write permission
>
> -->  "File file Dora:Users:michelle:Desktop:en is already open."
>
> set eof of fileRef to (get eof of fileRef) + 1
> write additions to fileRef
> close access bar
>
> If I put a close access statement right before the open access
> statement, I get an error saying that the file isn't open.
>
> If I omit "with write permission", I get an error on the next line
> saying that it's not open with write permission.
>
> If I delete the file and change the first line to
> set UserFile to choose file name with prompt "Please choose the
> dictionary file to add the words to."
>
> I still get "File file Dora:Users:michelle:Desktop:en is already open."
>
> In short, whether I try to open an existing file or create one from
> scratch, I get that error.

This works here with 10.4.9:

choose file with prompt "Please choose the dictionary file to add the words to."
set fileRef to result
open for access fileRef withwrite permission
 _______________________________________________
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

  • Prev by Date: Re: Open for access with write permission
  • Next by Date: Re: Open for access with write permission
  • Previous by thread: Re: Open for access with write permission
  • Next by thread: Re: Open for access with write permission
  • Index(es):
    • Date
    • Thread