• 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: Lion crashed by AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lion crashed by AppleScript


  • Subject: Re: Lion crashed by AppleScript
  • From: Emmanuel LEVY <email@hidden>
  • Date: Fri, 22 Jul 2011 11:07:20 +0200

Sorry for asking the obvious, but it looks like some are thinking that you should not write a plist file which would "belong" to some running app.

I really wonder why one would think so. For me, most of the time preference files are read when the app opens, then again if you ask the app's preferences, and they are saved when you click "save" over a change. Of course if you're writing at the very same moment the file may get corrupt - usually it ends with the beginning of one version ending with the end of the other version. But this is highly unlikely, the window to collide would be less than 1/1000 second.

I'm sure those who think it's dangerous are right, maybe it's specific to Lion, but could someone enlighten me?

Best,
Emmanuel

On Jul 22, 2011, at 12:58 AM, Shane Stanley wrote:

On 22/7/11 3:27 AM, "Luther Fuller" <email@hidden> wrote:

But, is this problem specific to this particular command or plist file
or
is it a more general problem with writing any preference plist file?

It's a *potential* problem when writing to any plist file that belongs to a
running application. It shouldn't cause the damage you're seeing, but
results will vary from no problems, through intermittent problems, to
crashing problems. It's a hack -- sometimes useful, but potentially
problematic.


--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/ apps/>



_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- 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
  • Follow-Ups:
    • Re: Lion crashed by AppleScript
      • From: Deivy Petrescu <email@hidden>
    • Re: Lion crashed by AppleScript
      • From: Shane Stanley <email@hidden>
    • Re: Lion crashed by AppleScript
      • From: Matt Deatherage <email@hidden>
References: 
 >Re: Lion crashed by AppleScript (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Lion crashed by AppleScript
  • Next by Date: Re: Lion crashed by AppleScript
  • Previous by thread: Re: Lion crashed by AppleScript
  • Next by thread: Re: Lion crashed by AppleScript
  • Index(es):
    • Date
    • Thread