I'm a novice and I hope someone can help me with my troubles. I'm
trying to create an applescript which downloads a file to the desktop,
then opens the file and reads it into a string:
set the target_URL to the clipboard
set the destination_file to ((path to desktop as string) &
tell application "URL Access Scripting"
download target_URL to file destination_file replacing yes
open for access destination_file
set filedata to (=ABevent rdwrread=BB destination_file)
close access destination_file
--blah blah blah...--
I tried using the standard scripting additions "read" which of course
doesn't work, but I read that the above workaround should work.
However, I am getting the error:
"Can't make <path> into a file." then "Unknown error -1700".
Am I missing something small here? I've banged my head on this for a
If I could go around the saving/reading that would be even better,
downloading target_URL directly to a string.
Thanks in advance for any help or tips.
||1/2/2005 5:31:45 PM