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