Re: Lion crashed by AppleScript
Re: Lion crashed by AppleScript
- Subject: Re: Lion crashed by AppleScript
- From: Deivy Petrescu <email@hidden>
- Date: Mon, 25 Jul 2011 12:21:36 -0400
On Jul 25, 2011, at 11:27 , Axel Luttgens wrote:
> Le 24 juil. 2011 à 20:47, Luther Fuller a écrit :
>
>> […]
>>
>> The original Abracapocus used idle and quit handlers. I removed these. I just submitted Bug # 9831083 with the following test script ...
>>
>> […script code…]
>>
>> On a new Lion installation, it kills the Finder, first time, every time.
>> I will let Apple figure out why.
>
> Hello Luther,
>
> Thanks for the details.
> So, does it mean that a very simplified version like this one:
>
> set show to true
> set filePath to (path to preferences as text) & "com.apple.finder.plist"
> tell application "Finder" to quit
> delay 5
> tell application "System Events" to set value of property list item "AppleShowAllFiles" of property list file filePath to show
> delay 5
> tell application "Finder" to activate
>
> would irremediably have those nasty effects as well?
>
> On the other hand, have you tried with something like:
>
> do shell script "defaults write com.apple.finder AppleShowAllFiles -bool TRUE"
>
> in the hope the defaults binary goes thru all the expected layers?
>
> Axel
>
I have been using the do shell script method for a long while and never had a problem.
I started in Leopard or SL and crossed over to Lion without a hitch.
Deivy Petrescu
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