• 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: Requesting help with sandboxing questions please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Requesting help with sandboxing questions please (From: Brian Christmas <email@hidden>)
 >Re: Requesting help with sandboxing questions please (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Requesting help with sandboxing questions please
  • Next by Date: Re: Requesting help with sandboxing questions please
  • Previous by thread: Re: Requesting help with sandboxing questions please
  • Next by thread: Re: Requesting help with sandboxing questions please
  • Index(es):
    • Date
    • Thread