Some more guideance on whether to use Applescript/JS?
This is, in rough outline, what I want to do:
1. From within InDesign, extract the effective ppi of an image in the 'x' and 'y' directions.
2. In Photoshop, apply those numbers in a certain way to the image so that the effective ppi becomes 300 in Indesign. It's a simple formula that you apply to the Image Resolution.
3. Then I want to apply an Unsharp Mask with an edge mask to sharpen the image. This involves quite a number of simple steps.
I have written out the whole procedure in Pidgin Applescript (a combination of Applescript, BASIC and English) and it works perfectly. I have to do Step 1 manually, but for steps 2 & 3 I have generated an Action, with a modal control for step 2, which pauses and asks for input.
I want to know the best way to approach this task. Someone has told me (outside of these forums):
Michael Hale responded to a previous thread of mine (http://forums.adobe.com/thread/457438) suggesting JS instead of Applescript:
I would recommend that you use javascript for several reasons. First it is cross platform, second there seems to be more people on the forums using JS than AS, and last but not least in this case you can not work with the Action Manager API using AS. You would have to create and call JS functions from AS.
So, I am left with: Applescript because it can handle multiple applications at once, but JS because it can handle Actions. What is the best way to approach this task? AS or JS?
1. Extract some variables from a selected image in an open InDesign document.
2. Open that same image in Photoshop and change the Image Resolution (a calculation is involved)
3. Call up my Action to do the rest.
4. Ask if more sharpening is required, and the amount. Loop at this step until the answer is "No".
5. Save and close the image in Photoshop, and return to the selected image in InDesign to see the effect.
Any suggestions most appreciated.