I have a half million images in old .ANPA format (circa 2004, jpeg compressed data, different wrapper) in an archive.
GC opens them fine while PS will not.
I have an applescript that crawls the folders from a list and opens each .anpa image, saves it as jpeg and writes it to a log file.
Works great if the file is valid. If the file is corrupt, it stops dead in it's tracks and displays the error box with some of the binary data.
I've put the open command inside a "try" and "on error" trap. It still stops the script at the dialog box (attached).
If there a way to have the dialog repressed or dismissed without human intervention?
[Solved] Dismissing error dialog on open
[Solved] Dismissing error dialog on open
- Attachments
-
- Screen Shot 2021-05-16 at 11.13.06 AM.jpg (229.11 KiB) Viewed 1728 times
- forum_adm
- Site Admin
- Posts: 1714
- Joined: Fri Dec 23, 2016 9:41 am
- Location: Germany
- Country: Germany
Re: Dismissing error dialog on open
Please download the latest BETA at:
http://www.lemkesoft.org/beta.html
I added now an option to the prefs.
Thorsten
http://www.lemkesoft.org/beta.html
I added now an option to the prefs.
Thorsten
Re: [Solved] Dismissing error dialog on open
Great idea but it just moves the problem.
Now when it hits a bad file it just shuts things down with a different error.
I'm hoping to trap the error so the script can skip over the bad file and proceed with the other ones in the source list rather than shut down waiting for human intervention. I have the open statement inside an try/on error construct but it still stops the script dead at the dialog box.
Thanks for looking into this.
We emailed 20+ yrs ago about IPTC and scripting. I think at the time the birth of your first was imminent.
Your responsiveness is one of the reasons I've always been a big fan of your software.
Now when it hits a bad file it just shuts things down with a different error.
I'm hoping to trap the error so the script can skip over the bad file and proceed with the other ones in the source list rather than shut down waiting for human intervention. I have the open statement inside an try/on error construct but it still stops the script dead at the dialog box.
Thanks for looking into this.
We emailed 20+ yrs ago about IPTC and scripting. I think at the time the birth of your first was imminent.
Your responsiveness is one of the reasons I've always been a big fan of your software.
- Attachments
-
- Screen Shot 2021-05-22 at 4.22.29 PM.jpg (31.41 KiB) Viewed 1679 times
- forum_adm
- Site Admin
- Posts: 1714
- Joined: Fri Dec 23, 2016 9:41 am
- Location: Germany
- Country: Germany
Re: [Solved] Dismissing error dialog on open
Please download the new build 5052:
http://www.lemkesoft.org/beta.html
That should avoid the dialog if called via AppleScript.
Thorsten
http://www.lemkesoft.org/beta.html
That should avoid the dialog if called via AppleScript.
Thorsten
Re: [Solved] Dismissing error dialog on open
I didn't get here in time for build 5052.
I tried with 5067.
The software still stops dead in it's tracks when it hits a bad file and displays the dialog box.
I'm almost through my 500K of files I needed to convert. I appreciate the efforts made but at this point any effort on it would not be a good use of your time.
I tried with 5067.
The software still stops dead in it's tracks when it hits a bad file and displays the dialog box.
I'm almost through my 500K of files I needed to convert. I appreciate the efforts made but at this point any effort on it would not be a good use of your time.