Re: Moving multiple URLs with corresponding names into a folder.
Re: Moving multiple URLs with corresponding names into a folder.
- Subject: Re: Moving multiple URLs with corresponding names into a folder.
- From: Shane Stanley via AppleScript-Users <email@hidden>
- Date: Sun, 8 Mar 2020 14:32:53 +1100
On 8 Mar 2020, at 9:35 am, iKel via AppleScript-Users
<email@hidden> wrote:
>
> I am new to AppleScript so just trying to learn the basics here
The first issue is very basic: the number of items in each list must match.
You're also passing a string instead of a file object as the location for the
new files.
As for your repeat, try this:
set the website_names to [...]
set the website_URLs to [...]
set destPath to (path to desktop as text) & "Apple Support Links:Scripting |
Automation Links"
repeat with i from 1 to the count of website_names
tell application "Finder"
make new internet location file at folder destPath to (item i
of website_URLs) with properties {name:item i of website_names}
end tell
end repeat
(You might need to check you URLs, too.)
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden