• 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: AppleScript-Users Digest, Vol 12, Issue 16
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript-Users Digest, Vol 12, Issue 16


  • Subject: Re: AppleScript-Users Digest, Vol 12, Issue 16
  • From: John Mitchell <email@hidden>
  • Date: Fri, 09 Jan 2015 18:39:29 +1100

reading your commentary I tried to execute the script in SD 5.0.9, OSX 10.9.5

and get this error:

Can’t get framework "Foundation" of «script». Access not allowed.

can you advise what is my problem...

On 9 Jan 2015, at 15:11 , email@hidden wrote:

>
> Message: 1
> Date: Fri, 09 Jan 2015 09:53:26 +1100
> From: Shane Stanley <email@hidden>
> To: AS users <email@hidden>
> Subject: Re: Script that "Tells" Finder just Focuses on Finder instead
> 	of	running
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> On 8 Jan 2015, at 2:40 pm, Alex Hall <email@hidden> wrote:
>>
>> Would the modification you suggest below, to let it follow sim links, break anything with normal folders?
>
> So it turns out that's true -- but it also turns out that it doesn't really follow symlinks. Here's a version that will:
>
> use scripting additions
> use framework "Foundation"
>
> -- this where we'll store the stuff as we collect it; we could use a list, but it could get very long
> set finalNSArray to current application's NSMutableArray's array()
> -- make NSURL of where to start
> set thePath to POSIX path of (choose folder)
> set anNSURL to current application's |NSURL|'s fileURLWithPath:thePath
> -- call our handler
> my listURL:anNSURL inArray:finalNSArray
> -- join the strings in the array, and convert it to an AS string
> return (finalNSArray's componentsJoinedByString:linefeed) as text
>
etc….


regards


John

Email:  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: AppleScript-Users Digest, Vol 12, Issue 16
      • From: Shane Stanley <email@hidden>
    • Re: AppleScript-Users Digest, Vol 12, Issue 16
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Script that "Tells" Finder just Focuses on Finder instead of running
  • Next by Date: Re: AppleScript-Users Digest, Vol 12, Issue 16
  • Previous by thread: Re: modify http request
  • Next by thread: Re: AppleScript-Users Digest, Vol 12, Issue 16
  • Index(es):
    • Date
    • Thread