Re: Picture file to clipboard w/shell?
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