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

Re: open for access


  • Subject: Re: open for access
  • From: "J. Stewart" <email@hidden>
  • Date: Mon, 1 Dec 2008 17:14:45 -0500

On 12/1/08 at 2:31 PM, Luther Fuller <email@hidden> spake thusly:

I need to do this (in 10.5.5) ...

	set refNr to (open for access htmlFile with write permission)

but I keep getting the error -54, "File permission error". I've checked permissions and I (the current admin user) do have read-write permission.

That's the message when another process on the same machine already opened the file with that same AppleScript command. I wonder whether the files opened by a process close magically when it quits. I would think that no.

That's what I was thinking, so the original code said this ...

	try
		close access htmlFile
	end try
	try
		set refNr to (open for access htmlFile with write permission)

so I shouldn't be getting the error for that reason. Perhaps I need to restart?


Just for drill, what does the variable htmlFile contain - Alias, File Ref. or something else?

J
--
The Sufis advise us to speak only after our words have managed to pass through three gates.  At the first gate, we ask ouselves, 'Are these words true?'  If so, we let them pass on; if not, back they go.  At the second gate, we ask, 'Are they necessary?'  At the last gate, we ask, 'Are they kind?'  -Eknath Easwaran
_______________________________________________
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: open for access
      • From: Luther Fuller <email@hidden>
References: 
 >Re: open for access (From: Luther Fuller <email@hidden>)

  • Prev by Date: Modifying table cell content via UI scripting
  • Next by Date: Re: open for access
  • Previous by thread: Re: open for access
  • Next by thread: Re: open for access
  • Index(es):
    • Date
    • Thread