hi all,
i was wondering if there was a way to get the source of a selected web page without opening a new window in safari?
im working on a lyrics program (just to see if i can actually do it), and having the safari windows opening and closing is annoying.
thanks,
Z
Model: PowerBook G4
AppleScript: 1.10.3
Browser: Safari 417.8
Operating System: Mac OS X (10.4)
Hi Z.,
try this:
set theSource to (do shell script "curl [url=http://bbs.applescript.net/viewtopic.php?id=16582)]http://bbs.applescript.net/viewtopic.php?id=16582")[/url]
D.
perfect!, much prettier than before.
thanks,
Z
had my 1st problem with it, i tried to do the following:
do shell script ("curl " & "[url=http://www.sing365.com/music/lyric.nsf/HELL-AINT-A-BAD-PLACE-TO-BE-lyrics-AC-DC/3869E39CE82ECECD4825686B000BC8B7]http://www.sing365.com/music/lyric.nsf/HELL-AIN'T-A-BAD-PLACE-TO-BE-lyrics-AC-DC/3869E39CE82ECECD4825686B000BC8B7[/url]")
wich gave me the following error:
sh: -c: line 1: unexpected EOF while looking for matching `‘’
sh: -c: line 2: syntax error: unexpected end of file
any ideas?
thanks,
Z