Executing files with different program

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Jav

Executing files with different program

Post by Jav » Thu Apr 10, 2003 6:40 pm

Hi, I have to daily convert image files (tiff & EPS) that are in a folder to jpeg low res. I have done a Photoshop droplet (kind of macro) that will do it, but I have to select the files and drop them on top of the icon for it to work.
I want to create a script that can do this, but so far I can't find a way to create a reliable script: if I use the record function it will fail if the window moves or the icon is moved.
I can't find a command that will:
select all files but one (the .exe)
drop them all over the icon (or open them with the specific.exe)
Is there a way? I tried GetFileList> and Repeat> with no avail.
thanks

Jav

User avatar
Captive
Macro Veteran
Posts: 213
Joined: Sun Oct 20, 2002 8:37 pm
Location: Colorado, USA

Post by Captive » Thu Apr 10, 2003 8:41 pm

This thread contains an example I wrote of a GetFileList / Repeat routine.
http://www.mjtnet.com/usergroup/viewtopic.php?t=310
You can probably just add a condition in there to see if the file is not ".exe".

I think the "Drag a file on to an icon" is exactly the same to launching whatever program the icon represents, followed by a space, then file path/filename of whatever you dropped on to it. So just look at the properties of the icon, and you can use that, and the filename of what you dropped on to it in a Run>

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts