applescript - Simple script no longer works on Lion -


I have a simple upload, which takes many images in a folder you select and then using the graphic converter images Mirrors to If I put it in a new AS file then this script will run; However, if I try to run it for the second time then I get the following error "Application window 1 can not be found" graphic convertor "invalid index."

This script has always gone to OSX 10.6

I am running OSX 10.7.4 and Graphic Converter 8.1 (latest version).

Here is the script

  Specify the application "Finder" Set the name of the path from loopfinish 1 to 0 set (Choose folder with prompt "Choose to include folder" ) Set fileList1 for each file of the folder path Set the name set loopfinish 1 fileList1 to calculate the objects of the application Finally tell the application "graphic convertor" to 1 in the loopfinish 1 set to open the IF file Open the IList1 as the current current file name Mirror window 1 horizontal H 1 stop saving window so finally tell recycle end   

This is driving me nuts!

Graphic converts have other windows (visible and invisible), right It is better to use the document to get the window. In addition, the image may not be open, so use any window, try block .

  Activate the set path (Choose the folder containing the prompt "Select the folder containing the folder") application to "Finder" to set the file list 1 (to write files named folder path name ), Because the "graphic convertor" application in the alias list, repeat the file with the tile in the file, set the active tab, turn on the tile set (first window whose current document Turn on the mirror horizontally present     to save the end of the curl window yes repeat repeat

Comments