• 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: Robert Poland <email@hidden>
  • Date: Thu, 25 Oct 2012 15:31:36 -0600

On Oct 25, 2012, at 3:10 PM, waynemelrose <email@hidden> wrote:

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. 

Thanks wayne,

You led me to discover that the "set to clipboard" has to be a Finder command.


Robert Poland - Fort Collins, CO



 _______________________________________________
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: 
 >set clipboard fails (From: Robert Poland <email@hidden>)
 >Re: set clipboard fails (From: waynemelrose <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: HFS Path by Reference
  • Index(es):
    • Date
    • Thread