• 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: scripting a weekly download
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scripting a weekly download


  • Subject: Re: scripting a weekly download
  • From: email@hidden
  • Date: Wed, 10 Jul 2002 17:19:44 -0700

rob,

here is the script, it gives me the invalid URL error, can you help?

set the directory_URL to ,
"http://www.web-light.net/downloads/ttb/";
set the recieving_foldername to "DOWNLOADS"
set the recieving_folder to ((path to desktop folder as text) & ,
the recieving_foldername & ":") as string
set the timeout_amount to 1800
tell application "Finder"
if not (exists folder the recieving_foldername) then
make new folder with properties {name:the
recieving_foldername}
end if
end tell
try
with timeout of timeout_amount seconds
tell application "URL Access Scripting"
download directory_URL to alias recieving_folder ,
replacing yes with download directory and
progress
end tell
end timeout
on error error_message number error_number
if the error_number is not -128 then
tell application (path to frontmost application as text)
display dialog ("Error number: " & (error_number as
text) & ,
return & return & ,
error_message) buttons {"OK"} default
button 1 giving up after 15
end tell
end if
end try
tell application "URL Access Scripting" to quit

thanks, matthew

Matthew Russell
Imaging Specialist / Illustrator
ZIBA Design
503.402.8839 - direct line
503.223.9606 - ZIBA Portland




Rob Stott <email@hidden>
07/10/02 01:30 PM


To: <email@hidden>,
<email@hidden>
cc:
Subject: Re: scripting a weekly download


Hi Matthew,

It's certainly possible. Depending on the exact task in hand, you may want
to use Fetch, URL Access Scripting or Explorer - all of these are fairly
easily scriptable.

If you struggle then I'm sure you'll be able to find some similar scripts
somewhere to crib from - if not, then drop a line to this mailing list
letting folks know what program you've chosen and any troublesome lines of
script and I'm sure we'll all try to help out.

Good luck and I hope you get it sorted out!

Rob


on 10/7/02 5:36 pm, email@hidden at email@hidden
wrote:

> i have one question if anyone can help, i want to know if it's possible
to
> create a script that will go to a directory of downloads and download
new
> items each week, and if it's possible how can i go about creating this,
> and where can i get started?
_______________________________________________
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.

  • Prev by Date: Re: error -1762
  • Next by Date: apple event
  • Previous by thread: Re: scripting a weekly download
  • Next by thread: do shell script administrator privileges bug?
  • Index(es):
    • Date
    • Thread