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:43:14 -0400
Yeah, I sure was using a path.
Nice to know.
Are the docs for that in the NSURL reference class, the file system programming guide or where?
On May 22, 2013, at 8:40 PM, Shane Stanley wrote:
> On 23/05/2013, at 10:28 AM, Alex Zavatone <email@hidden> wrote:
>
>> What is failing is TextEdit and it appears to be a sandboxing issue.
>
> It sounds more like you're using a path rather than a file in the save command. This saves a TextEdit file outside its sandbox here here:
>
> set theDesk to path to desktop as text
> tell application id "com.apple.TextEdit" -- TextEdit
> save document 1 in file (theDesk & "Some file.txt")
> end tell
>
>
> --
> 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 (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