Problem using command script file of Acrobat configurator
Posted: Tue Mar 26, 2013 10:11 pm
Hi all,
I'm currently working on duplicating a flow I've done on another switch and I not able to execute an acrobat script. My script is really simple and it call a application level function using Acrobat menu.
if(($error == null) && ($doc != null))
{
try
{
app.execMenuItem("SplitSeqAcroLabel")
}
catch(theError)
{
$error = theError;
$doc.closeDoc( {bNoSave : true} );
}
}
I got always 1 warning and 1 error.
The warning:
Possible errors in AppleScript: the command '/usr/bin/osascript /tmp/SWITCH_applescript__10947715' returned warning '2013-03-26 16:47:23.015 osascript[3927:707] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types_ 262): no suitable image found. Did find: /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers. '
And the error:
Script execution error: ERROR: NotAllowedError: Security settings prevent access to this property or method.
Even if I try this one i got the same warning and error:
try
{
var test1 = "test1"
}
catch(theError)
{
$error = theError;
$doc.closeDoc( {bNoSave : true} );
}
I wonder if it is my switch or configurator that having a problem. I'm using Powerswitch 11 update 3 on MAC 0S 10.8.2. I'm using Acrobat 9 because X what not usable because of security issue (Acrobat X told me each time that the application had change probably because the javascript folder).
Any idea?
I'm currently working on duplicating a flow I've done on another switch and I not able to execute an acrobat script. My script is really simple and it call a application level function using Acrobat menu.
if(($error == null) && ($doc != null))
{
try
{
app.execMenuItem("SplitSeqAcroLabel")
}
catch(theError)
{
$error = theError;
$doc.closeDoc( {bNoSave : true} );
}
}
I got always 1 warning and 1 error.
The warning:
Possible errors in AppleScript: the command '/usr/bin/osascript /tmp/SWITCH_applescript__10947715' returned warning '2013-03-26 16:47:23.015 osascript[3927:707] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types_ 262): no suitable image found. Did find: /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers. '
And the error:
Script execution error: ERROR: NotAllowedError: Security settings prevent access to this property or method.
Even if I try this one i got the same warning and error:
try
{
var test1 = "test1"
}
catch(theError)
{
$error = theError;
$doc.closeDoc( {bNoSave : true} );
}
I wonder if it is my switch or configurator that having a problem. I'm using Powerswitch 11 update 3 on MAC 0S 10.8.2. I'm using Acrobat 9 because X what not usable because of security issue (Acrobat X told me each time that the application had change probably because the javascript folder).
Any idea?