Re: Open for access with write permission
Re: Open for access with write permission
- Subject: Re: Open for access with write permission
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 24 Mar 2008 14:56:24 -0700
- Thread-topic: Open for access with write permission
So try 'close access' on it. Put it in a try block in a general script so
that it won't error on files that aren't already open for access.
--
Paul Berkowitz
> From: "Houston, Brad" <email@hidden>
> Date: Mon, 24 Mar 2008 13:35:18 -0700
> To: Applescript Users <email@hidden>
> Subject: Re: Open for access with write permission
>
> I've also encountered this problem (OS 10.4.10) when crashing before closing
> a file opened for write access on the desktop. Afterwards, I can't open it,
> because it's already open. OK, fine. But I can't close it, from the same
> script or one written just to close it, because it then says it's not open
> to be closed.
> The "close" command is wrapped in a try statement prior to the "open"
> command, so if it is already open it should close it before re-opening it,
> or, if not open, won't crash the program trying to close something that
> doesn't exist.
> Eventually I get annoyed enough and restart the machine, which is the only
> reliable way I've found around this loop of denial.
>
> Brad
>
>
> On 3/24/08 1:17 PM, "KOENIG Yvan" <email@hidden> wrote:
>
>>
>> Le 24 mars 2008 à 21:03, Dan Doughtie a écrit :
>>> I ran into the exact same issue. Even when using the Finder to
>>> ³make new file² it said the file was already open. When I moved
>>> the make/open for access to file inside a folder on the desktop it
>>> worked. But if the file was on the desktop it wouldn¹t. Go figure.
>>>
>>
>> Hello
>>
>> With which OS are you meeting this behavior ?
>>
>> I write reports of operations in such a file everyday and I never met
>> that. with 10.4.11.
>>
>> Yvan KOENIG
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>
>
> m
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to email@hidden
> --------------------------------------------------------
>
> The information contained in this message is intended only for the recipient,
> and may be a confidential attorney-client communication or may otherwise be
> privileged and confidential and protected from disclosure. If the reader of
> this message is not the intended recipient, or an employee or agent
> responsible for delivering this message to the intended recipient, please be
> aware that any dissemination or copying of this communication is strictly
> prohibited. If you have received this communication in error, please
> immediately notify us by replying to the message and deleting it from your
> computer. The McGraw-Hill Companies, Inc. reserves the right, subject to
> applicable local law, to monitor and review the content of any electronic
> message or information sent to or from McGraw-Hill employee e-mail addresses
> without informing the sender or recipient of the message.
> --------------------------------------------------------
> _______________________________________________
> 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
>
_______________________________________________
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