Re: Requesting help with sandboxing questions please
Re: Requesting help with sandboxing questions please
- Subject: Re: Requesting help with sandboxing questions please
- From: Robert DuToit <email@hidden>
- Date: Sat, 30 Aug 2014 07:17:30 -0400
I just did a test and you can access these via
set DocFoldPath top path to Documents folder
set DocList to list folder DocFoldPath
set posPath to posix path of DocFoldPath
do shell script (“Date > “& quoted form of posPath)
On Aug 29, 2014, at 9:05 PM, Brian Christmas <email@hidden> wrote:
> G'day again
>
> It's OK, I worked it out from http://www.automatedworkflows.com/2011/10/13/sandboxing-a-cocoa-applescript-applescriptobjc-application/
>
> Thanks anyway,
>
> Regards
>
> Santa
>
> On 30/08/2014, at 9:21 AM, Brian Christmas <email@hidden> wrote:
>
> G'day scripters
>
> I've learnt that sandboxed apps cannot use the Finder, but in place of it, how can I specifically...
>
> 1. Check if a folder exists in the sandbox 'Documents' folder
>
> 2 Create a new folder in the sandboxed 'Documents' folder
>
> 3 Replace the Finder 'set everyFile to every file of documentsFolder whose name contains ".plist"
>
> 4 Get a file to run in place of this handler,
>
> on openMyScriptFile_(sender)
> try
> set pathToApplescriptFile to path to current application as text
> tell application "Finder"
> set applescriptFile to pathToApplescriptFile & "Contents:Resources:ApplescriptObjC Wizard.scpt"
> open applescriptFile
> end tell
> on error errmsg
> display dialog errmsg
> end try
> end openMyScriptFile_
>
> I've been googling for four hours, and cannot find the answers.
>
> Regards
>
> Santa
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> applescriptobjc-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden