• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: URL Access Scripting-download
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URL Access Scripting-download


  • Subject: Re: URL Access Scripting-download
  • From: John Delacour <email@hidden>
  • Date: Tue, 8 Jul 2003 14:39:42 +0100
  • Mac-eudora-version: 6.0a26

At 6:19 am +0100 8/7/03, Sovereign Diamonds wrote:

For a few frustrating days I have been banging away at what I thought would
be a a rather simple exercise. I have searched all 123 email references
within the list on the Apple site & problem is common, but there does not
seem to be an definitive answer. to The non-functioning script is:

set upLoadItem to "ftp://username:email@hidden/myfile.txt";
set toFolder to "Macintosh HD:Users:dmm:Desktop:TestFolder:myfile.txt"
tell application "URL Access Scripting"
download upLoadItem to toFolder replacing yes with progress
end tell
tell application "URL Access Scripting" to quit

The dictionary gives tha answer quite clearly:

download : Downloads a specified URL to a specified file
download string -- URL to download from
to file specification -- the downloaded file location


set f to "http://www.google.co.uk/index.html";
set flocal to "" & (path to desktop) & "INDEX.HTML" as file specification
tell application "URL Access Scripting" to download f to flocal
--> file "dx:Users:jd:Desktop:INDEX.HTML"

You are trying to download to a _string_, which is meaningless.

JD




.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • QuickTime export
      • From: Christopher Thorpe <email@hidden>
References: 
 >URL Access Scripting-download (From: Sovereign Diamonds <email@hidden>)

  • Prev by Date: URL Access Scripting-download
  • Next by Date: wildcard for directory selection
  • Previous by thread: Re: URL Access Scripting-download
  • Next by thread: QuickTime export
  • Index(es):
    • Date
    • Thread