• 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 16, Issue 93
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: AppleScript-Users Digest, Vol 16, Issue 93
  • From: Deivy Petrescu via AppleScript-Users <email@hidden>
  • Date: Thu, 12 Sep 2019 20:08:32 -0400


> On Sep 12, 2019, at 18:30 , Kellen Ruyle via AppleScript-Users
> <email@hidden> wrote:
>
> Hi Yvan,
> I am running Mojave (10.14.6).  I have added Script Editor to allow Full Disk
> Access, Accessibility and Automation in Security Preference. Anything I am
> missing as far as security? I run the script but same handler issue. I
> noticed that when I run the script the editor highlights what is causing the
> error. Not sure if that has something to do with it - it seems to be with
> “sort (get every document file of the front Finder window) by physical size”.
> I copied and pasted the code and underlined what Script Editor highlighted.
> Thanks for your help Yvan and L. Lee. I appreciate the help.
> Kind regards,
> Kel
>
> tell application "Finder"
>       #generate a list of reference sorted by size
>       set these_items to sort (get every document file ¬
>               of the front Finder window) by physical size
>       #generate a list of names
>       set these_names to {}
>       repeat with i from 1 to the count of these_items
>               set the end of these_names to ¬
>                       the name of (item i of these_items)
>       end repeat
> end tell
> #convert the list of names to a paragraph-delimited text block
> set AppleScript's text item delimiters to return
> set the item_list to these_names as string
> set AppleScript's text item delimiters to {""}
> #make a new document with the text
> tell application "TextEdit"
>       activate
>       make new document
>       set text of document 1 to the item_list
> end tell
>
> Sent from my iPhone

Just to say, that I also get an  error if I use "physical size”.
The error is not there if I switch to “size”.
So, physical size either has been deprecated or a bug was just found.

Deivy Petrescu
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

References: 
 >Re: AppleScript-Users Digest, Vol 16, Issue 93 (From: Kellen Ruyle via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: AppleScript-Users Digest, Vol 16, Issue 93
  • Next by Date: Re: AppleScript-Users Digest, Vol 16, Issue 93
  • Previous by thread: Re: AppleScript-Users Digest, Vol 16, Issue 93
  • Next by thread: Re: AppleScript-Users Digest, Vol 16, Issue 93
  • Index(es):
    • Date
    • Thread