• 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: Picture file to clipboard w/shell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Picture file to clipboard w/shell?


  • Subject: Re: Picture file to clipboard w/shell?
  • From: jj <email@hidden>
  • Date: Fri, 29 Oct 2004 11:11:32 +0200

You may convert first the image to PICT format. Here is an example using
Image Events (but you may use 'sips' or ImageMagick or PS if you prefer so):

##########################
tell application "Image Events" to ¬
    save (open alias "path/to/myfile.jpg") as PICT in "/tmp/f"

set the clipboard to (read ("/tmp/f" as POSIX file) as picture)
##########################


jj

> Is there any way to get a picture file onto the clibboard *as a picture*
> using a shell command? Pbcopy doesn¹t do it. I'm imagining something like
> this but of course with syntax that actually works.
>
>
> Pbcopy < ~/desktop/myfile.jpg
>
>  _______________________________________________
> 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

--
http://www.macscripter.net/
http://www.osaxen.com/


 _______________________________________________
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: 
 >Picture file to clipboard w/shell? (From: Bruce Robertson <email@hidden>)

  • Prev by Date: Re: How to find current user?
  • Next by Date: Re: Native AS or grep via do shell script?
  • Previous by thread: Picture file to clipboard w/shell?
  • Next by thread: Re: Filemaker changes 04 to 1904
  • Index(es):
    • Date
    • Thread