• 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: Moving multiple URLs with corresponding names into a folder.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Moving multiple URLs with corresponding names into a folder. (From: iKel via AppleScript-Users <email@hidden>)

  • Prev by Date: Moving multiple URLs with corresponding names into a folder.
  • Next by Date: Re: AppleScript-Users Digest, Vol 17, Issue 24
  • Previous by thread: Moving multiple URLs with corresponding names into a folder.
  • Next by thread: Re: AppleScript-Users Digest, Vol 17, Issue 24
  • Index(es):
    • Date
    • Thread