|
-
Script-fu: Error handling when gimp-file-load fails.
Hi,
Don't know if there are any Script-fuers out there, but here it goes anyway.
If I try to load a non-existant image with gimp-file-load the script bombs out silently. Is there any way to handle this case and do something nicer? I am reading in a whole list of images and it is fine if one or two don't exist, but I still want the script to continue executing.
I heard of (access-problem? "a.jpg" "r"), but I think it grabs at a Unix command, hence it doesn't work on my, ugh, Windows machine -- sorry, no choice.
Any advice would be nice.
-
I'm not going to pretend I know Script-Fu because I don't. But anything that runs a command on a UNIX box should run a command on Windows box unless there is something freaky going on. Just make sure the EXE is in your PATH environment variable on your windows box, and you should be okay.
------------------
Advocate of the Sharky (Ultra) High-Resolution Club [SHRC]
main(i){putchar(341513875>>(i-1)*5&31|!!(i<6)<<6)&&main(++i);}
Advocate of the Sharky (Ultra) High-Resolution Club [SHRC]
main(i){putchar(341513875>>(i-1)*5&31|!!(i<6)<<6)&&main(++i);}
-
Yeah, sounds obvious doesn't it. Unfortunately I don't know what the real command is. In the script-fu online manual it says for commands marked with a 'U', you can find an entry in the man pages. No entry for access-problem as far as I can see.
I tried it and the script silently bombed just like if you put any command in it doesn't recognize. Like (quotient x y) for example.
-
You may have just stumbled upon a feature that hasn't been ported properly... have you checked the website. I think they have a Bugzilla you can search, and I wouldn't be surprised if you could e-mail one of the developers and ask.
------------------
Advocate of the Sharky (Ultra) High-Resolution Club [SHRC]
main(i){putchar(341513875>>(i-1)*5&31|!!(i<6)<<6)&&main(++i);}
Advocate of the Sharky (Ultra) High-Resolution Club [SHRC]
main(i){putchar(341513875>>(i-1)*5&31|!!(i<6)<<6)&&main(++i);}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|