Some more guideance on the opportunity to use Applescript/JS?

It is in draft, I want to do:

1. in InDesign, extract the effective ppI have an image in the 'x' and 'y' directions.

2. in Photoshop, apply these numbers in some way to the image so that the effective ppi becomes 300 in Indesign. It's a simple formula that you apply to the Resolution of the Image.

3 then I want to apply a unsharp mask with an edge mask to sharpen the image. There is a number of simple steps.

I wrote about the whole procedure in Pidgin Applescript (combination of Applescript, BASIC and English) and it works perfectly. I need to do step 1 manually, but for steps 2 and 3, I generated an Action, with a modal command for step 2, who pauses and asks for input.

I want to know the best way to approach this task. Someone told me (outside of these forums):

Your best bet will be to post on the forum script. It would need to be Applescript, because I don't think that Javascript can make several applications at the same time.

However, I'm not positive, but I don't think open as smart object is available in the Photoshop CS3 Applescript dictionary. This may be changed with CS4? Also, when I was working on the use of script with multilayer Photoshop files, he created many seemingly insurmountable problems...

Michael Hale responded to a previous thread of mine (http://forums.adobe.com/thread/457438) suggesting JS instead of Applescript:

I would recommend using javascript for several reasons. First of all it is cross-platform, second, there seems to be more people on the forums using JS that ALSO and last but not least in this case you can not work with Action Manager API using ACE. You would have to create and call ACE JS functions

So, I'm left with: Applescript because it can handle several applications at the same time, but JS because it can manage Actions. What is the best way to approach this task? AS or JS?

1 extract variables of a selected image in an InDesign document.

2. open the image in Photoshop and change the resolution of the Image (a calculation is involved)

3 call my Action to do the rest.

4. ask if one sharpening more is necessary and the amount. Loop at this stage until the answer is 'no '.

5. Save and close the image in Photoshop and get back to the selected image in InDesign to see the effect.

The most popular suggestions.

1. in InDesign, extract the effective ppI have an image in the 'x' and 'y' directions.

The effective ppi of an image the ppi of the image as it is presented in ID rather than the real ppi of the image underlying, correct? Just curious...

2. in Photoshop, apply these numbers in some 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 +.

This could be done automatically if you he has scripted instead of calling an action with a modal dialog box.

What is the best way to approach this task? AS or JS?

Use both. Run AS to obtain the effective ppi, open the image in PS and change the image of the ground. You, set up a loop (controlled with a ' sharpening more?) ("guest) who calls your action via JS (app.doAction ("actionName","actionSetName"). Have, save and close the image, and then will return to ID to see the results.

You can do all this in JS, but the solution would be certainly more complex, especially because you would have to use BridgeTalk to send messages back and forth between ID and Psalm

X

Tags: Photoshop

Similar Questions

  • How can deselect an option button in the group 'Size', using Applescript to print several pages at 100%

    I hit a serious problem to update my application to use Adobe Acrobat DC 2015.

    I try to use the graphical interface to print multi-page documents but do not uncheck an option "Shrink oversized pages"button, checking a different 'Real size'button, in the same group. The two buttons are checked, and printing is by default the Junk button, print several pages on a sheet, instead of 100%.

    Anyone know of a different way to uncheck that darn button, or better yet, how to direct print the document. I can't find any online documentation of printing direct formatting.

    I need to print all pages, to 100%, with a particular printer, the "theLargePagePrinter". In addition, we use Pitstop Pro 13.

    TIA,

    Concerning

    Santa

    say application "Adobe Acrobat" to Activate

    the shell script ("sleep 0.2")

    say application 'System events' to say process "AdobeAcrobat.

    the shell script ("sleep 0.2")

    try

    with keys 'p' command down

    end try

    the shell script ("sleep 0.2")

    try

    click 1 of the Group pop up button 1 of the 'Print' window

    end try

    the value x to 0

    Repeat until there are menu 1 of popup button 1 of the Group 1 of window 'print '.

    the shell script ('sleep 0.1')

    the value x to x + 1

    if x ≥ 20 then exit repeat # wait 2 seconds

    end Repeat

    the shell script ("sleep 0.2")

    try

    click menu item (my theLargePagePrinter) of 1 of 1 of Group pop up button menu 1 of the 'Print' window

    end try

    the shell script ("sleep 0.2")

    try

    click on radio button "All" of the Group 2 of window 'print '.

    end try

    try

    click on CheckBox 'Size' of the Group 3 of window 'print '.

    end try

    the shell script ("sleep 0.2")

    try

    try

    say 1

    say (there are (box option "Shrink oversized pages" of the Group 3 of window ' print')) as text -< 'true'

    end try

    try

    2 say

    say application 'System events' to display the dialog box ()get each attribute of option button of the Group 3 of 3 window 'Print') as text -< fails

    say 3

    end try

    Repeat while value of radio button "Shrink oversized pages" of the Group 3 of window 'Print' is 1

    the shell script ("sleep 0.2")

    click on radio button 'Real size' of the Group 3 of the window 'Print '.

    # the value value of radio button "Shrink oversized pages" of the Group 3 of window 'Print' to 0 -< cannot set the value

    the shell script ("sleep 0.2")

    end repeat -< maintains a loop

    end try

    the shell script ("sleep 0.2")

    try

    click on radio button 'Real size' of the Group 3 of the window 'Print '.

    end try

    -more than < code >

    tell the end

    tell the end

    In the Acrobat SDK kit, locate in the JavaScript section and at the IAC-> section AppleScript to learn how to run a JavaScript via AppleScript. You have the Acrobat SDK kit?

  • Helps the computer virtual using RDP to external network connection

    Having a problem that I can't work. ill try to describe the best possible.

    In another place where I am, I have a Pc Win7 Workstation 10, a Server2012 virtual machine.

    Virtual network is configured as NAT (that's how I need it to be).

    Can't RDP from Win7 computer from desktop to the Server2012 no problem...

    I'm not able to Setup is RDPing to my position here, through the router there using IP: port


    Ive tried by implementing redirects the port on the router to the virtual computer, but can't make it work.

    Anyone know how to get this working?

    You have allowed incoming traffic on port tcp 44000 on PC WIN7? Entering rules, any program, 44000, Protocol TCP port destination and source port type everything.

    Important can be the source port can be everything. Check it too much on the ROUTER.

    Is that you don't have a second PC in your local network connected to the ROUTER? Here, you can test it and exclude from the ROUTER config.

    The 'port 44000 shoot' is part of the NAT function on the virtual network of VMware. The important thing is that tcp port 44000 must be authorized in the PC WIN7 firewall.

    I don't know for certain that the transposition of the NAT is good, but it would still be possible to run the following on the PC WIN7 cmd session:

    mstsc /v:192.168.1.10:44000

    When you try to connect from a MAC client there is need of some more changes on the 2012R2 of Windows Server: could not connect to Windows 2012 R2 overview of the remote desktop for MAC 2.1.1

  • DeskJet 3050 has errors in the press cannot use alignment

    Hi, I hope you can help.

    I just today inherited a second Deskjet 3050 J611 from a friend a hand. I'm setting up on my system and I have a problem with the alignment page printing.

    My system is Windows 7 64 bit and I have connected the printer wireless to my network. The thought I want to calibrate the printer I ran the alignment, but go looking at the alignment of the mine of the internet pages is decidedly not just. Some lines seem to be missing and the illustration at the end of printing is 'lines' with blank lines. Therefore, the analysis of the alignment fails. I also printed the windows test page and that seems doubtful too with the lines of print with the tops? cut, but some lines are intact. I've included a scan of the print-out of alignment if it helps to diagnose my problem. At least the scannner works!. I can print from my Ipad 3 even if the quality is not good and the same thing with Windows printing, I hope that if I can make the alignment that the seeds will disappear.

    I changed ink for new trucks and installed the latest drivers and software from the HP site.

    Please help if you can.

    In General, this kind of question is cleared up by the replacement of the ink cartridges. Especially with Deskjets and more with have received you second hand, the chances of the cartridge/print head (they are combined) being empty or clogged is very likey. I would as a first step, and if this does not resolve the issue here is a document of support on print quality issues which can also produce some more light on the question you have:



    http://www.HP.com/United-States/consumer/digital_photography/print_better_photos/tips/print-quality.html



    I hope that helps you out, and if you have any questions do not hesitate to contact me. I will reply to you as soon as I can.



    Have a great day!

  • Games works more slowly for the 3rd time.

    I suspect that my graphics card is corrupted/confused.  A few weeks ago, I was able to play all my games on graph high resolution of 1440 x 900, but with shadows.  About 2 weeks ago I had to give up all my games at the lowest effects and the resolution to 1024 x 768.  Now my games won't work for about 15 minutes and that the framerate will drop severely.  I ran Furmark and my average FPS was 8... I cleaned the inside of the computer, defragmented, it, ran CCleaner, updated my card system restore, I tried to graphics.  This is the 3rd time I've had this problem.  Is my just messed up graphics card or somehting?  Here are my specs.  If I left something out let me know.  I have this PC for about 3 years.

    Microsoft Windows Vista Home Premium version 2006
    Intel Core 2 Quad Q9300
    nVIDIA GeForce 9500 GS (D9M-25)
    3 GB memory

    Hello

    If you want to improve performance, then you will need to replace the power supply and buying a video card.  Look at what this site is for a video card for BBC 2.

    Look at the NVIDIA GTX 460 1 GB as a possible choice for a video card.  The CX500 Corsair has enough power for the NVIDIA GTX 460 1 GB.

    You might do some research on what the gamers who use 2 BBC are recommend for a video card.

  • more information on the "int context."

    Where can I find more information on the 'context', as used in:

    protected void fieldChangeNotify(int context)
    

    Rather than simply calling updateLayout (), I do this:

     protected void fieldChangeNotify(int context) {
            super.fieldChangeNotify( context );
            this.updateLayout( );
        }
    

    and want to call it when I make changes to the State of my custom field, but I'm not sure that I've really should I send in context.

    FieldChangeListener.PROGRAMMATIC should be passed if a field has been updated programmatically.  Other context values vary according to the type of field you are using.  For example, ChoiceField.CONTEXT_CHANGE_OPTION is used by the ChoiceField class when the update is triggered against a rejection of dialogue change option.

  • Just changed Safari on my imac. When you use find menu safari gave me the opportunity to "find in this page" which was an incredible aid during a search. Is it possible to have this feature using firefox?

    Just changed Safari on my imac. When you use the search menu in safari, I had the opportunity to "find in this page" which has been an incredible help while doing research and looking for specific words/phrases. Is it possible to have this feature using firefox?

    I think that Safari has the same keyboard shortcut in Firefox 'cmd + F' on a Mac or a 'Ctrl + F' on Windows.

    Look in the lower left corner to find. There are more likely to be next and previous differences in keyboard shortcuts, but continuing in the search bar at the bottom no matter what browser you use. It is an 'X' to reject the search bar. In Windows, the "Esc" key will reject the bar if you are in the search text entry box.

    Keyboard shortcuts:

    Please mark "resolved" a response that will better help others with a similar problem - hope it was her.

  • Everytime I turn on my Mac Java says he needs to install the message says "to use the line tool java command, you must install a JDK.  Click on "more information visit the java developer kit download site."  I followed all these steps and downloSoftware.

    The message says "to use the line tool java command, you must install a JDK.  Click on "more information visit the java developer kit download site."  I followed all these steps and downloaded the correct software update, but still getting the message.

    A

    If you have installed the plugin of Facebook video appeal and you no longer want to use it, you can remove it as follows.

    1 back up all data.

    2. open the library folder in your home folder by holding down the option key and selecting

    Go ▹ library

    in the Finder menu bar.

    3. place these items in the library folder to the Trash:

    LaunchAgents/com.facebook.videochat.name.plist

    Support/Facebook app

    Here the name represents the name of your Facebook.

    4 log off or restart the computer, and then empty the trash.

    B

    If you do not use this plugin, or any other software (for example, some Adobe products), which depends on Java, install the Java runtime distributed by Apple.

    C

    If you do not have the Facebook plugin and you don't want to install Java, please ask for further instructions.

  • My Windows 7 Professional Office system disk has been corrupted and I took the opportunity to install a SSD for a new system disk and reinstall Windows.  The system is installed and running on the SSD, with my old drive system currently used for storage a

    My Windows 7 Professional Office system disk has been corrupted and I took the opportunity to install a SSD for a new system disk and reinstall Windows.  The system is in place and running on the SSD, with my old drive system now used for storage as it is still readable.  The only product Adobe, that I reinstalled so far is drive XI but I would like to reinstall items 8 and Acrobat 9 without occupying more licenses that both are also installed on my laptop.  Can you tell me the best way to do it?  -Thank you

    If you have two activations allocated already and one was lost on the hard drive that has failed, then you must contact the Adobe Support via chat and ask them to reset your activations.

    To the link below, click on the still need help? the option in the blue box below and choose the option to chat...

    Serial number and activation support (non - CC) chat
    http://helpx.Adobe.com/x-productkb/global/Service1.html ( http://adobe.ly/1aYjbSC )

  • Is all the same to use an iPhone to lock iCloud 6 s more?

    Is all the same to use my locked iPhone 6s iCloud more?

    Only if you have the credentials for the account that was used to lock.

  • Not the iPhone 6 s - 128 gig use more battery than the concert of 64 and if so, how?

    My wife has an iPhone 5 s, but she wants more memory, then she is considering buying an iPhone 6s, either 64 GB or 128 GB.  But we are worried if the concert 128 will use more battery of the 64 gig and require therefore be recharged frequently.  The 128 gig use a lot of battery?  Is there data on the life of the battery for each of them?

    Craig

    Cpeterson3,

    iPhone storage capacity (memory) will not make a difference regarding the battery life.

  • Hi there, I been using MacBook Air and IPad2 for awhile. Recently, I lost my MacBook Air and am interested open ICloud to check my folder/old records. Can I get directions to the opportunity to see my files in I have the cloud.

    Hi there, I been using MacBook Air and IPad2 for awhile. Recently, I lost my MacBook Air and am interested open ICloud to check my folder/old records. Can I get directions to the opportunity to see my files in I have the cloud.

    I hope that you are not in a surprise but a MacBook Air not backup to iCloud. It can record data in iCloud drive (if you saved it specifically to this place) and can synchronize Photos, Contacts, etc to iCloud if you had set it to do. You can use any computer and connect to https://www.icloud.com/ to see what is stored. I hope this is good news and that it contains what you hope.

  • Overview worked for me 3 - 4 times, then I can get the opportunity to do the overview more. Am I missing something?

    I've used the technology of floyover on the city of milwaukee about 4 times then it stopped giving me the opportunity to do so. y at - it a specific setting that I need to activate?

    Make sure you have the Wi - Fi Internet connection.

    Try

    Force reboot

    http://support.Apple.com/en-us/HT201559

  • Hi, while writing an email online using Firefox 3.6.3, I was using one of the "CTRL + left arrow or right" to move the cursor on the text. I must have pressed some other key because the screen has become huge - and I can't scroll vertically or horizont

    Hi, while writing an email online using Firefox 3.6.3, I was using one of the "CTRL + left arrow or right" to move the cursor on the text. I must have pressed some other key because the screen has become huge - and I can't scroll vertically or horizontally, which makes the pages of Mail of Hotmail impossible. I have connected since using the Explorer MSFT and it works very well. This problem occurs only on the page of Mail of Hotmail Live not on the home page or other.
    Could you please let me know if there is a problem with Firefox, or if you have any advice on how to restore the appearance of Hotmail in Firefox?

    This has happened

    Just once or twice

    == I'm compiling an email in Hotmail Live

    See this:
    https://support.Mozilla.com/en-us/KB/page+zoom

  • I use Director and I got about 100 picture in my project and I want to bring up more time on the screen when reading it.

    I use Director and I got about 100 picture in my project and I want to bring up more time on the screen when reading it. I know you can do induvdually but I was wondering if there was a way to select all and then make the longer time for each of them. Help, please!

    original title: NEED HELP Please REPLY as soon as POSSIBLE. Windows movie maker question

    Hello

    My friend John Papa - MVP - is the expert on Windows Movie Maker.

    PapaJohn.org
    http://Papajohn.org/

    PapaJohn - online tutorials
    http://www.Papajohn.org/mm2-online-tutorials.html

    Windows Movie Maker Tutorials - check the sounds of the addition in the left menu and others on the
    main screen.
    http://www.windowsmoviemakers.NET/tutorials/

    Windows Live Movie Maker help & how-to and Forums are good sources of information:

    Windows Essential - Movie Maker help
    http://Windows.Microsoft.com/en-us/Windows-Live/Essentials-Help-Center?T1=T3

    Answers - Windows Essentials - Microsoft Windows Movie Maker Forums
    http://answers.Microsoft.com/en-us/windowslive/Forum/MovieMaker?tab=threads
    ====================

    These might help:

    Getting started with Windows Movie Maker

    Import video, photos and audio on Windows Movie Maker

    Import video from a videotape

    Get a movie in Windows Movie Maker

    Make a movie quickly in Windows Movie Maker (AutoMovie)

    Publish a movie in Windows Movie Maker

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

Maybe you are looking for