[Webkit-unassigned] [Bug 7012] Coerce javascript objects to appleScript compatible types prior to returning them to applescript

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Feb 3 12:17:26 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=7012





------- Comment #3 from ap at nypop.com  2006-02-03 12:17 PDT -------
A script that I used for testing:

tell application "Safari"
        do JavaScript "new Boolean();" in document 1
        do JavaScript "2*2;" in document 1
        do JavaScript "2/3;" in document 1
        do JavaScript "'a string'" in document 1
        do JavaScript "new String('a string')" in document 1
        do JavaScript "new Date" in document 1
        do JavaScript "window.getSelection()" in document 1
        do JavaScript "window.getSelection() + \"\"" in document 1
        do JavaScript "function Polygon() {this.edges = 8;} new Polygon;" in
document 1
        do JavaScript "new Array(1, 2, 'three');" in document 1
end tell


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list