Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Applescript "read file" scripting addition error


This topic is 7220 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hi,

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) &

"maptemp.htm")

tell application "URL Access Scripting"

download target_URL to file destination_file replacing yes

end tell

open for access destination_file

set filedata to (

  • 1 month later...
Posted

Why not just put the data straight into the field?

Example:

set targetURL to "http://www.apple.com"

do shell script "curl " & targetURL

copy result to cell "whatever" of current record

This topic is 7220 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.