• 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: Michelle Steiner <email@hidden>
  • Date: Thu, 22 Mar 2007 18:16:06 -0700

On Mar 22, 2007, at 5:52 PM, Stockly, Ed wrote:

Michelle, I notice your file is on the desktop. That makes it not simple.

I'm guessing that somewhere else in your script you're changing the
reference to that file.

Something like this?

set UserFile to (choose file with prompt "yadda") as string
set UserFile to file UserFile

That doesn't seem to work on the desktop.

I have the file on the desktop for convenience. I didn't want to mess with the real dictionary file. I tried opening an existing file and I tried creating a new file; both gave me that error.


After writing the above paragraph, I created a copy of the "en" file in place; using that file works. It's only files on the desktop that give me the "file already open" error.

I also had to change "the text returned of the result" to "the text returned of the result as text" because text returned is unicode, and I needed single byte characters.

I still have one problem, though; it overwrites the file from the beginning, even with the set eof line.

-- Michelle

--
"English has pursued other languages down alleyways to beat them unconscious and rifle their pockets for new vocabulary."



_______________________________________________ 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: 
 >Re: Open for access with write permission (From: "Stockly, Ed" <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