File rename strategy
File rename strategy
- Subject: File rename strategy
- From: Paul Abney <email@hidden>
- Date: Tue, 20 Jan 2015 16:54:10 -0600
Hello Masters,
I have an issue I am trying to work around and I can not seem to find a solution that I am happy with. I am working on scripting a non scriptable application and I have most of it done, thanks to tips I found on this list regarding scripting the mouse, but at the end of the script I need to rename a file and that is where I am having problems.
Here is the issue, the program outputs X number of files to a folder it creates based on the number of records it is outputting. When finished it combines these files into a single file. It then takes this single file and re-arranges it into an imposed file. This imposed file is what I need to rename. I tried making a loop to check the number of files in the folder and waiting until there is only one and renaming that file. The issue is my script is finding the combined file before the imposed file is started. Using a delay command has proven unreliable as the delay time is variable. So what would be the best way to approach this.
For the time being I have a very long delay involved that sort of kind of works, but takes way to long to complete. If I could find a reliable way to count the files
PROBLEM:
X number of files in folder (time to completion unknown)
Files combined into one file (time to completion unknown) only one file in folder
File imposing starts (time to start unknown) two files in folder
File imposing completes (time to finish unknown) one file in folder - this is the file I need to rename.
Any guidance would be greatly appreciated.
Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden