How to pass highlighted file name as argument?

Discuss and share scripts and script files...
Post Reply
zBernie
Posts: 179
Joined: 08 Dec 2016 17:20

How to pass highlighted file name as argument?

Post by zBernie »

What I'd like to do is highlight a file in XY, then pass that file name to the ImageMagick convert command shown below, as $1. How would I go about adding this to a user defined button? I guess that would be the best approach.

-Thanks

convert $1 -resize 667x1000! -quality 100 $1.RESIZED

highend
Posts: 13317
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to pass highlighted file name as argument?

Post by highend »

Code: Select all

<curitem>
But you need to get the quoting right (same way as in your other post)
One of my scripts helped you out? Please donate via Paypal

Post Reply