Voting in der Community ⬆️⬇️

Wenn euch Beiträge von anderen Usern gefallen, könnt ihr dies durch eine positive Bewertung zeigen und wenn ihr angemeldet seid, so sogar Punkte vergeben. Erfahrt hier mehr zu unserem Bewertungssystem: Voting in der deutschen Apple Support Community


Thread wurde vom System oder vom Community-Team geschlossen.

do javascript in Safari Applescript does not returns arrays any more

Hello,


I have recently updated to OSX 10.12.4 (Safari 10.1 / Applescript 2.5) and running old scripts that rely on arrays to be return from Javascript with a do javascript command inside a Safari-Applescript stopped working


eg.


when I enter

tell application "Safari"

     tell document 1

          do JavaScript "'1,2,3'"

     end tell

end tell


I get a String in return, same works for numbers


but Arrays only return an empty string... seems to be a bug, since

tell application "Safari"

     tell document 1

          do JavaScript "[1,2,3]"

     end tell

end tell


used to return a native AppleScript Array -> {1,2,3}


Does someone has this bug as well with these software-versions and if so, were I can tell Apple to fix that?

MacBook Pro, macOS Sierra (10.12.4), Safari 10.1

Gepostet am 07. Apr. 2017 12:25

Antworten

Es sind keine Antworten vorhanden.

do javascript in Safari Applescript does not returns arrays any more

Willkommen in der Apple Support Community
Ein Forum, in dem Apple-Kunden sich gegenseitig mit ihren Produkten helfen. Melde dich mit deiner Apple-ID an, um Mitglied zu werden.