ActionFileFromXML
Posted: Wed Apr 07, 2010 12:05 pm
I am trying to create an action which has a single step which is running a script from a set location. My problem is I am on a windows machine, but I want to create an action that will be run on a mac. When I run the ActionFileFromXML file the path for the script is being set to C:\Macintosh HD\... which is not what I'm after
Is there a way around this? Or to accomplish the same thing in another way?
Thanks.
Anna
My action XML below...
Code: Select all<ActionFile key="ScriptMenuMethod.atn" file="/c/DOCUME~1/annaf/LOCALS~1/Temp/ScriptMenuMethod.atn">
<ActionSet version="16" name="Test" expanded="false" count="1">
<Action key="1" name="Run Script" expanded="false" count="1">
<ActionItem key="TEXT" expanded="false" enabled="true" withDialog="false" dialogOptions="0" identifier="TEXT" event="AdobeScriptAutomation Scripts" name="Scripts" hasDescriptor="true">
<ActionDescriptor key="AdobeScriptAutomation Scripts" count="2">
<DescValueType.ALIASTYPE key="1785938804" id="1785938804" symname="javaScript" sym="javaScript" path="/MACINTOSH HD/Library/Application Support/Test.jsx"></DescValueType.ALIASTYPE>
<DescValueType.STRINGTYPE key="1785941363" id="1785941363" symname="javaScriptMessage" sym="javaScriptMessage" string="undefined">
</DescValueType.STRINGTYPE>
</ActionDescriptor>
</ActionItem>
</Action>
</ActionSet>
</ActionFile>
Is there a way around this? Or to accomplish the same thing in another way?
Thanks.
Anna
My action XML below...
Code: Select all<ActionFile key="ScriptMenuMethod.atn" file="/c/DOCUME~1/annaf/LOCALS~1/Temp/ScriptMenuMethod.atn">
<ActionSet version="16" name="Test" expanded="false" count="1">
<Action key="1" name="Run Script" expanded="false" count="1">
<ActionItem key="TEXT" expanded="false" enabled="true" withDialog="false" dialogOptions="0" identifier="TEXT" event="AdobeScriptAutomation Scripts" name="Scripts" hasDescriptor="true">
<ActionDescriptor key="AdobeScriptAutomation Scripts" count="2">
<DescValueType.ALIASTYPE key="1785938804" id="1785938804" symname="javaScript" sym="javaScript" path="/MACINTOSH HD/Library/Application Support/Test.jsx"></DescValueType.ALIASTYPE>
<DescValueType.STRINGTYPE key="1785941363" id="1785941363" symname="javaScriptMessage" sym="javaScriptMessage" string="undefined">
</DescValueType.STRINGTYPE>
</ActionDescriptor>
</ActionItem>
</Action>
</ActionSet>
</ActionFile>