• 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: set clipboard fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set clipboard fails


  • Subject: Re: set clipboard fails
  • From: waynemelrose <email@hidden>
  • Date: Fri, 26 Oct 2012 08:10:47 +1100


On 26/10/2012, at 7:57 AM, Robert Poland <email@hidden> wrote:

Why doesn't this work? Does the Missing values have anything to do with it?

tell application "System Events"
set processlist to name of every process
set clipboard to "" & contents of processlist
display dialog "" & processlist
end tell

processlist

TIA,


try this.. 

tell application "System Events"
set processlist to name of every process
end tell

set AppleScript's text item delimiters to return
set the clipboard to (processlist as string)
set AppleScript's text item delimiters to ""



The result is a list, so as you can see, i've replaced TID's with return to make it format a little nicer. I hope this helps. 
 _______________________________________________
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

  • Follow-Ups:
    • Re: set clipboard fails
      • From: Robert Poland <email@hidden>
References: 
 >set clipboard fails (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: set clipboard fails
  • Next by Date: Re: set clipboard fails
  • Previous by thread: Re: set clipboard fails
  • Next by thread: Re: set clipboard fails
  • Index(es):
    • Date
    • Thread