Re: Converting an array to formatted text
Re: Converting an array to formatted text
- Subject: Re: Converting an array to formatted text
- From: Steve Mills <email@hidden>
- Date: Fri, 14 Jul 2017 19:50:28 -0500
> On Jul 14, 2017, at 17:11, @lbutlr <email@hidden> wrote:
>
> I have the following code snippet:
>
> set theAlbum to album of current track
> set theArtist to artist of current track
> set myTracks to (name of every track of view of front window whose album
> contains theAlbum)
> set the clipboard to (myTracks as text)
>
> Which puts something like "Teen Age RiotSilver RocketThe Sprawl'Cross The
> BreezeEric's TripTotal TrashHey JoniProvidenceCandleRain
> KingKissabilityTrilogy" into the clipboard
>
> I'd like to have that list at least comma separated, though i'd like full
> control over it.
set AppleScript's text item delimiters to {","}
set the clipboard to (myTracks as text)
(Typed on iPad while watching MTM.)
Steve via iPad
_______________________________________________
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