• 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
two great little scripts.....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

two great little scripts.....


  • Subject: two great little scripts.....
  • From: Tudor <email@hidden>
  • Date: Wed, 13 Mar 2002 10:17:12 +1000

Dear applescripters...

I have tried both the following scripts to download webpages with no luck?
under each I have put the error I get? I have tried it for both .asp and
.html files?

look forward to your guru solutions!

regards
Tudor

-- script 1
set myFolder to "TiBook:download folder:"
set startURL to "http://www.site.com.au/users/resumePreview.asp?resumeID=";

repeat with x from 100001 to 100005
tell application "URL Access Scripting"
download (startURL & ((contents of x) as text)) to (myFolder &
(contents of x) as text) & ".asp" with progress
end tell
end repeat
-- script 1
Results under OS 9 - URL access scripting got an error: Can't make some data
into the expected type
Results under OS X - URL access scripting got an error: An error of type 1
has occurred.


-- script 2
tell application "Internet Explorer"
set the_previews to 20
set the_folder to (path to desktop as text)
set x to 1
repeat the_previews times
set this_preview to (111112 + x) as text
GetURL ("http://www.site.com.au/users/resumePreview.asp?resumeID="; &
this_preview) to (the_folder & this_preview & ".asp")
set x to x + 1
end repeat
end tell
-- script 2
Results under OS 9 - Internet Explorer got an error: Can't make some data
into the expected type
Results under OS X - Internet Explorer got an error: Can't make some data
into the expected type
_______________________________________________
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: file size and creation date
  • Next by Date: Re: creating pulldown menu
  • Previous by thread: Re: A Difference of Months
  • Next by thread: AppleScript 1.8.2b3 for Mac OS 9 and X now available
  • Index(es):
    • Date
    • Thread