To document web pages using Safari + Applescript and Filemaker pro 8 Advanced
I am building some routines, including this one:
==== my test script
tell application “Safari”
set the_title to name of window 1 as string
set the_URL to URL of document 1 as string
set quote_text to “ " & the_title & " ” & return & “ " & the_URL & " ” & return & “ "
=== en my test script ===
I did found a workaround at
which is adding an empty string <‘’> to the argument.
This works somehow… BUT
the text string is somehow odd… different from what one would get with copying the same selected areqa on a web page
The difference is that whole series of spaces are in the text and that certain lay-out elements of a web page generate (invisible) ASCII (a n upside down ? question mark.
As I am entering the text string in Filemaker pro I have written some stripping routine to get these unwanted text elements out.
I will be grateful for any suggestion
Browser: Safari 312.6
Operating System: Mac OS X (10.3.9)