• 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: Converting an array to formatted text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Converting an array to formatted text (From: "@lbutlr" <email@hidden>)

  • Prev by Date: Re: Converting an array to formatted text
  • Next by Date: Re: Converting an array to formatted text
  • Previous by thread: Re: Converting an array to formatted text
  • Next by thread: Re: Converting an array to formatted text
  • Index(es):
    • Date
    • Thread