- Joined
- Feb 10, 2009
- Messages
- 1
- Reaction score
- 0
- Points
- 1
Hi,
I am doing a silly applications in AppleScript that opens and saves the content of a web page:
tell application "Safari"
activate
make new document at end of documents
set URL of document 1 to "www.url.."
delay 2
get document 1
delay 10
save document 1 in "directory/name.html"
end tell
delay 10
Here comes the catch: Instead of saving name.html, it saves "directory/name.html" as a file in the root directory.
Can someone help me? I could not find the problem.
Joao
I am doing a silly applications in AppleScript that opens and saves the content of a web page:
tell application "Safari"
activate
make new document at end of documents
set URL of document 1 to "www.url.."
delay 2
get document 1
delay 10
save document 1 in "directory/name.html"
end tell
delay 10
Here comes the catch: Instead of saving name.html, it saves "directory/name.html" as a file in the root directory.
Can someone help me? I could not find the problem.
Joao