• 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 Droplet seems to receive strange file list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript Droplet seems to receive strange file list


  • Subject: Re: AppleScript Droplet seems to receive strange file list
  • From: Yvan KOENIG <email@hidden>
  • Date: Fri, 17 Feb 2017 14:38:20 +0100


Le 17 févr. 2017 à 14:11, Takaaki Naganoya <email@hidden> a écrit :

I confirmed the droplet’s received file list on macOS 10.12.4(beta).
It seems strange. Sometimes, they are split.
If fileList contains files, file bundles and folders, the length of it become strange.
Something is wrong with AppleScript droplet, I think.

<AppleScript>
on run

end run

on open fileList
set aRes to length of fileList
display dialog aRes as string

repeat with i in fileList
set j to i as string
display dialog j
end repeat
end open
</AppleScript>

--
Takaaki Naganoya

Not specific to 10.12.4. I got the same odd behavior with the current 10.12.3

I selected these objects:
alias "myDesktop:Docs:DefaultsLib.scptd:"  a package
alias "myDesktop:Docs:Dialog Toolkit.scptd:"  a package
alias "myDesktop:Docs:Enumerate paths.scptd:"  a package
alias "myDesktop:Docs:_a_ULT_U_ SKYPE-15:"  a folder
alias "myDesktop:Docs:_a_ULT_U_ SKYPE-15:_a_ULT_U_SKYPE-15.jpg"
alias "myDesktop:Docs:_a_ULT_U_ SKYPE-15:_a_ULT_U_SKYPE-15.pgn"
alias "myDesktop:Docs:_b_INC_T_ LZL-001:"  a folder
alias "myDesktop:Docs:_c_REVS_ lands-05678:"  a folder
alias "myDesktop:Docs:_ZZZZ_U_ running-210778-379:"  a folder


the script returned dialogs displaying :
"2"
"myDesktop:Docs:DefaultsLib.scptd:"
"myDesktop:Docs:Dialog Toolkit.scptd:"
"7"
"myDesktop:Docs:Enumerate paths.scptd:"
"myDesktop:Docs:_a_ULT_U_ SKYPE-15:"
"myDesktop:Docs:_a_ULT_U_ SKYPE-15:_a_ULT_U_SKYPE-15.jpg"
"myDesktop:Docs:_a_ULT_U_ SKYPE-15:_a_ULT_U_SKYPE-15.pgn"
"myDesktop:Docs:_b_INC_T_ LZL-001:"
"myDesktop:Docs:_c_REVS_ lands-05678:"
"myDesktop:Docs:_ZZZZ_U_ running-210778-379:"

Displaying "2" is normal
Displaying "7" is odd.

Don't worry, I replaced the path to my desktop by myDesktop only in this message. ;-)

Yvan KOENIG running Sierra 10.12.3 in French (VALLAURIS, France) vendredi 17 février 2017 14:36:44



 _______________________________________________
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 Droplet seems to receive strange file list
      • From: Takaaki Naganoya <email@hidden>
    • Re: AppleScript Droplet seems to receive strange file list
      • From: Shane Stanley <email@hidden>
References: 
 >AppleScript Droplet seems to receive strange file list (From: Takaaki Naganoya <email@hidden>)

  • Prev by Date: AppleScript Droplet seems to receive strange file list
  • Next by Date: Script help for filling in Chrome credentials dialog
  • Previous by thread: AppleScript Droplet seems to receive strange file list
  • Next by thread: Re: AppleScript Droplet seems to receive strange file list
  • Index(es):
    • Date
    • Thread