[Solved] Dismissing error dialog on open

Having tech problems? Post them here and do not worry, there is always a solution for you.
Post Reply
Pwelsh
Posts: 3
Joined: Sun May 16, 2021 5:08 pm

[Solved] Dismissing error dialog on open

Post by Pwelsh »

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?
Attachments
Screen Shot 2021-05-16 at 11.13.06 AM.jpg
Screen Shot 2021-05-16 at 11.13.06 AM.jpg (229.11 KiB) Viewed 2041 times
User avatar
forum_adm
Site Admin
Posts: 1814
Joined: Fri Dec 23, 2016 9:41 am
Location: Germany
Country: Germany
Contact:

Re: Dismissing error dialog on open

Post by forum_adm »

Please download the latest BETA at:
http://www.lemkesoft.org/beta.html

I added now an option to the prefs.

Thorsten
Screen Shot 2021-05-20 at 07.01.jpg
Screen Shot 2021-05-20 at 07.01.jpg (263.53 KiB) Viewed 2027 times
Pwelsh
Posts: 3
Joined: Sun May 16, 2021 5:08 pm

Re: [Solved] Dismissing error dialog on open

Post by Pwelsh »

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.
Attachments
Screen Shot 2021-05-22 at 4.22.29 PM.jpg
Screen Shot 2021-05-22 at 4.22.29 PM.jpg (31.41 KiB) Viewed 1992 times
User avatar
forum_adm
Site Admin
Posts: 1814
Joined: Fri Dec 23, 2016 9:41 am
Location: Germany
Country: Germany
Contact:

Re: [Solved] Dismissing error dialog on open

Post by forum_adm »

Please download the new build 5052:

http://www.lemkesoft.org/beta.html

That should avoid the dialog if called via AppleScript.

Thorsten
Pwelsh
Posts: 3
Joined: Sun May 16, 2021 5:08 pm

Re: [Solved] Dismissing error dialog on open

Post by Pwelsh »

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.
Post Reply