B
BenChek
Registriert
Thread Starter
- Dabei seit
- 24.01.2017
- Beiträge
- 4
- Reaktionspunkte
- 0
Hi Leutz,
ich versuche alle URLs mit einer bestimmten Eigenschaft zusammenzuzählen. Bsp.: Summiere alle URLs welche "/abc/" enthalten. Die Summe wird anschließend als Loop-Anzahl für AppleScript benötigt.
Hierzu habe ich Javascript in Applescript eingebetet. Jedoch erscheint als Ergebnis "missing value".
Code:
----------------------------------------------------------------------------------
tell application "Safari"
make new document at end of every document with properties {example.com/abc/site.html}
delay 6
do JavaScript "$(document).ready(function(){
VarCount = $('a[href*='example.com/abc/']');
$(VarCount.length);
);
});" in document 1
end tell
-------------------------------------------------------------------------------------
Jemand eine Ahnung?
ich versuche alle URLs mit einer bestimmten Eigenschaft zusammenzuzählen. Bsp.: Summiere alle URLs welche "/abc/" enthalten. Die Summe wird anschließend als Loop-Anzahl für AppleScript benötigt.
Hierzu habe ich Javascript in Applescript eingebetet. Jedoch erscheint als Ergebnis "missing value".
Code:
----------------------------------------------------------------------------------
tell application "Safari"
make new document at end of every document with properties {example.com/abc/site.html}
delay 6
do JavaScript "$(document).ready(function(){
VarCount = $('a[href*='example.com/abc/']');
$(VarCount.length);
);
});" in document 1
end tell
-------------------------------------------------------------------------------------
Jemand eine Ahnung?