• 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: a script for saving text from the clipboard to a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a script for saving text from the clipboard to a file


  • Subject: Re: a script for saving text from the clipboard to a file
  • From: Doug McNutt <email@hidden>
  • Date: Tue, 28 Mar 2006 08:49:30 -0700

At the risk of being chastised for less than full AppleScript solutions, you should be aware of the NeXt-Step shell routines pbcopy and pbpaste.

pbpaste takes the contents of the clipboard and writes it to standard output which in turn can be redirected to a disk file.  A do shell script something like:

Do Shell Script prperlyguotedandposixedformof (pbpaste > /tmp/anewfile.txt)

might be all that you need.

For more:
man pbcopy
man pbpaste

--

Applescript syntax is like English spelling:
Roughly, but not thoroughly, thought through.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: a script for saving text from the clipboard to a file (From: "Gary (Lists)" <email@hidden>)

  • Prev by Date: Re: Setting password of a keychain key
  • Next by Date: Folder Actions
  • Previous by thread: Re: a script for saving text from the clipboard to a file
  • Next by thread: Re: a script for saving text from the clipboard to a file
  • Index(es):
    • Date
    • Thread