Re: Applescript in the future
Re: Applescript in the future
- Subject: Re: Applescript in the future
- From: Alex Zavatone <email@hidden>
- Date: Wed, 22 May 2013 20:28:26 -0400
On May 22, 2013, at 7:06 PM, Alex Zavatone wrote:
So, I've got a version of the exporter AppleScriptOC app running in Xcode 4.6.1, OS X 10.8.3
The app tells the Finder, Illustrator CS4/CS5, Photoshop CS4 and TextEdit all to save files to folders within the root.
With the root of the HD given proper privs, the Finder, AI and PS have no problem writing folders and saving files into them.
What is failing is TextEdit and it appears to be a sandboxing issue..
While the path to a folder is specified as:
ML:Optimized PNG:Sample File:,
TextEdit seems to think that the file is locked and I don't have privs to save the file.
Yes, it appears that sandboxing is kicking in here. TextEdit is trying to save the file to this path:
ML:Users:zav:Library:Containers:com.apple.TextEdit:Data:
Not the file path that I specified, but sure looks like a sandbox container.
So, this brings up another issue with sandboxing. It's not just that it may affect your app, but if the apps you need to talk to are sandboxed, then it is more of a PITA to work around.
Using Xcode 4.6.1 to make a build of TextEdit from the sample code that shipped with Xcode 4.2 fails with missing classes, but the old and reliable TextEdit from Snow Leopard (without any of the auto file versioning and sandboxing) does run under 10.8.3.
So, I was able to get an old version of the ASOC app up, running and completing before the process crashed with a GC call in an unregistered thread.
Yeah, this will work under 10.8.3 with those caveats. Sandboxing does get in the way and prevents it from completing unless a version of TextEdit that ignores sandboxing is available. And to rebuild the app for real, I'd have to switch it app over to the most wonderful ARC if that's what is now used on Mountain Lion.
Honestly, there's no benefit that Mountain Lion brings to the table in this case, but at least the app can be rebuilt on the newer OS if it is required. I'm sure a replacement for TextEdit can be found, but that's costly time that I don't want to have to spend when the app works just fine on 10.6.8.
It's issues like this as the Mac OS moves forward that make the OS less usable, not more so.
Hope this info will be useful to some.
Cheers and thanks Chris for at least pushing me to test this before I keep griping about it with little backing info. Now, I don't have FUD, just F and C.
_______________________________________________
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