system error -43 using applescript batch.

This area contains the messages from the old Yahoo gcmac group after the port.
Post Reply
blackjackcat2003
Posts: 0
Joined: Fri Aug 07, 2015 6:29 pm

system error -43 using applescript batch.

Post by blackjackcat2003 »

hi there, i get the following error using GC 9 and applescript. error "GraphicConverter 9 got an error: System error -43 occurred in document \"\"." number -1this is the apple-script i'm using, and it will convert one files, then give the error, tell application "Finder"    activate        set progbegin to (path to desktop folder) & "TSAIncoming" as string    set progdest to (path to desktop folder) & "TSAoutgoing" as stringend telltell application "Finder"    try        set fileList to every file of folder progbegin as alias list    on error        set fileList to (every file of folder progbegin as alias) as list    end tryend tellset progsbatch to ((path to application support folder from user domain) as string) & "GraphicConverter:Actions:ASIS"tell application "GraphicConverter 9"    activate    repeat with currentFile in fileList        convert file (currentFile) using batch (progsbatch) to folder (progdest)    end repeat        end tell
thorstenlemke
Posts: 0
Joined: Fri Dec 30, 2016 12:00 pm

Re: system error -43 using applescript batch.

Post by thorstenlemke »

Hello,-43 is file not found.What is the complete path?Does it exist on your machine?Thorsten hi there, i get the following error using GC 9 and applescript. error "GraphicConverter 9 got an error: System error -43 occurred in document \"\"." number -1this is the apple-script i'm using, and it will convert one files, then give the error, tell application "Finder"    activate        set progbegin to (path to desktop folder) & "TSAIncoming" as string    set progdest to (path to desktop folder) & "TSAoutgoing" as stringend telltell application "Finder"    try        set fileList to every file of folder progbegin as alias list    on error        set fileList to (every file of folder progbegin as alias) as list    end tryend tellset progsbatch to ((path to application support folder from user domain) as string) & "GraphicConverter:Actions:ASIS"tell application "GraphicConverter 9"    activate    repeat with currentFile in fileList        convert file (currentFile) using batch (progsbatch) to folder (progdest)    end repeat        end tell
Christopher Stone
Posts: 0
Joined: Sat Jun 19, 2004 11:47 pm

Re: system error -43 using applescript batch.

Post by Christopher Stone »

On Mar 19, 2016, at 20:10, flieckb@gsicommerce.com [gcmac] <gcmac@yahoogroups.com> wrote: hi there, i get the following error using GC 9 and applescript. ______________________________________________________________________Hey There,Aliases are better than text paths, because you'll get an error if the file/folder doesn't exist.As text instead of as string has been preferred for several years now.The following is tested and works on 10.11.3 with GraphicConverter 9.7.5.--Best Regards,Chris-------------------------------------------------------------------------------------------set batchFile to alias ((path to application support from user domain as text) & "GraphicConverter:Actions:Convert to PNG")set gcSourceFolder to alias ((path to home folder as text) & "test_directory:gcSource:")set gcDestinationFolder to alias ((path to home folder as text) & "test_directory:gcDestination:")tell application "Finder" to set fileList to every file of gcSourceFolder as alias list-------------------------------------------------------------------------------------------# This does work.-------------------------------------------------------------------------------------------if fileList ≠ {} then  tell application "GraphicConverter 9"    repeat with theFile in fileList      convert file theFile using batch batchFile to folder gcDestinationFolder    end repeat  end tellend if-------------------------------------------------------------------------------------------# But this is much faster.-------------------------------------------------------------------------------------------if fileList ≠ {} then  tell application "GraphicConverter 9"    quick convert files fileList in folder gcDestinationFolder using batch batchFile  end tellend if-------------------------------------------------------------------------------------------
Post Reply