Script combining menu command with options bar option?

Would like to call the Transform:Scale command AND activate the "Maintain aspect ratio" option from the options bar.
Any idea? thx.

This shoud call the transform command with the aspect ratio linked. And you should be able to use it in a Configurator button.
function transformDialog() {
    var desc = new ActionDescriptor();
        var ref = new ActionReference();
        ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
    desc.putEnumerated( charIDToTypeID('FTcs'), charIDToTypeID('QCSt'), charIDToTypeID('Qcsa') );
        var desc1 = new ActionDescriptor();
        desc1.putUnitDouble( charIDToTypeID('Hrzn'), charIDToTypeID('#Pxl'), 0.000000 );
        desc1.putUnitDouble( charIDToTypeID('Vrtc'), charIDToTypeID('#Pxl'), 0.000000 );
    desc.putObject( charIDToTypeID('Ofst'), charIDToTypeID('Ofst'), desc1 );
    desc.putUnitDouble( charIDToTypeID('Wdth'), charIDToTypeID('#Prc'), 100.000000 );
    desc.putUnitDouble( charIDToTypeID('Hght'), charIDToTypeID('#Prc'), 100.000000 );
    desc.putBoolean( charIDToTypeID('Lnkd'), true );
    desc.putEnumerated( charIDToTypeID('Intr'), charIDToTypeID('Intp'), charIDToTypeID('Bcbc') );
    try{
        executeAction( charIDToTypeID('Trnf'), desc, DialogModes.ALL );
    }catch(e){}
transformDialog();

Similar Messages

  • In IMovie11, is it possible to add a menu page with options such as PLAY, SCENES, TRAILER, etc

    In IMovie11, is it possible to add/create a menu at the beginning of the movie with options like PLAY MOVIE, SCENES, TRAILER, etc..

    *I found a solution. HP owes me $20,000 in consulting fees.*
    To print to a LaserJet 3600 or 2600 from a newer Mac using 10.6, you must do the following:
    Step 1: Install Foomatic HPIJS drivers
    Step 2: Get an AirPort Express or equivalent print server
    Step 3: Connect the printer via USB to the print server, and connect
    Step 4: Go to Print & Fax, then click the + button to add a printer
    Step 5: Select HP Jetdirect - Socket for the protocol
    Step 6: Enter the IP address of the printer server, followed by a colon and the port number (9100 or 9101)*, i.e. 1.2.3.4:9100
    Step 7: Name the printer, then click on the Print using: drop down menu
    Step 8: Select the Select Other Printer..., and choose the appropriate HPIJS driver.
    * To determine the correct port, open Network Utility in the Utilities folder. Click on Port Scan. Type the IP address of your print server, then check the Only test ports between... and enter 9100 and 9101. It will report back the open TCP port.

  • What is keyboard stroke that invokes menu command with underline letter M in Move.

    I use Windows 7 and am organizing my bookmarks in Firefox. I want to save time by using a keyboard stroke rather than the pull down menu with the Move command. Doesn't the underlined M mean a keyboard stroke should activate the MOVE command? I have tried the Ctrl key and the Alt key with the M to no avail. What key provides the right stroke to activate MOVE from the keyboard rather than the pulldown menu. I assume there must be a command; otherwise, why is the M in MOVE underlined.

    Such a shortcut only works if you have that menu open, so in case of the Organize menu you need to press Alt+O and M to activate Move.
    You can also use Cut (Ctrl+X) and Paste (Ctrl+V) instead.

  • Where is the firefox dropdown menu with options tab?

    how to find firefox drop down menu with options tab from nexus 7. i need to fix a popup ad choice i made accidentally.

    Load the site you blocked/allowed the popup on then long press on the location bar. Choose "Site Settings..." and remove the options.

  • Starting Safari with command-line options

    I am an old Unix Hacker who just started with Mac. Since scripting is an important
    part of old-school UNIX, I do many things via scripting.
    My question is: Is there a way to start Safari from the command line using command-line
    options that will allow Safari to open up multiple tabs with each tab pointing to a pre-defined
    URL?
    Thanks,
    msprewitt

    Hi,
    Type this in terminal,
    open http://www.google.com http://www.yahoo.com
    It will open the two web pages in two tabs. man open for more option.

  • Compiling failed with "unrecognized command line option '-Wl'" error

    Helllo,
    I have here a fresh installation of Archlinux and I fall into troubles with compiling a few of applications from AUR.
    The problem is this:
    gcc: error: unrecognized command line option ‘-Wl’
    It happens for example with bubblefishymod package from AUR. I've never seen this error.
    Any suggestion, what is wrong, please?
    I have 64bit Archlinux installation, intel core i5, base-devel package group is installed.

    Seems like a straightforward error message. Read about -Wl in "man gcc" if you want to know more.
    In the meantime, removing "-Wl" from the LDFLAGS in the Makefile (I used a sed line in the PKGBUILD) should allow you to compile it successfully. Whether or not it works as expected though, is another matter entirely. Contact the author and get him to fix his Makefile.

  • SQL Server 2008 Express Installation with command line options , FAILED.

    HI,
    I Have SQL Server 2005 Express instances on my PC. Now i am trying to install 2008 Express edition with Advance Services(Reporting.)
    I am trying to install the SQL Server 2008 Express with command line Options.
    /qs /Action=Install /Hideconsole /SecurityMode=SQL /Features=SQL,Tools,RS /InstanceName=XXXXXX /SAPWD="StrongPassword" /SQLSYSADMINACCOUNTS="Builtin\Administrators" /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /RSSVCACCOUNT="NT
    AUTHORITY\SYSTEM" /BROWSERSVCSTARTUPTYPE=Automatic /TCPENABLED=1 /NPENABLED=1
    But installation exits. It says the previous version 2005 tool are already exists, Remove them to Continue the 2008 Server Installation.
    please suggest me how to avoid that check and continue installation by replacing the older tool with 2008 automatically.
    regards 
    Pratap M:)

    Have you found any error in event logs?
    In my case even after uninstalling all 2005 related components it didn't worked. I had to resort to a brute force way and
    remove following registry keys
    32 Bit OS: HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\90
    64 Bit OS: HKLM\Software\Wow6432Node\Microsoft\Microsoft SQL Server\90
    Check below threads
    http://stackoverflow.com/questions/175881/sql-server-express-2008-install-side-by-side-w-sql-2005-express-fails
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/5fc58507-9f40-4213-acbd-32a57c8822d7/cant-uninstall-sql-server-2005-express-tools?forum=sqlsetupandupgrade
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

  • How do I restart the SNMP agents with the original command line options?

    I'm creating an application that changes the SNMP trap target configuration files and then restarts the SNMP agent. I'm currently working with the mibiisa agent. I want to make sure that I restart the service with the new trap targets but with the original command line options. How can I restart the mibiisa service with the same command line options that it originally loaded with?

    It is not "Network Time" that is the problem, but actually "SystemStarter." SystemStarter is an interim kludge to enable the work or the old StartupItems until they can be converted to LaunchDaemons or LaunchAgents controlled by launchd. Launcd calls SystemStarter to launch all the unconverted StartupItems. ntpd is now under the control of launchd directly.
    Launchctl is the command to load and unload the plist files, but I don't think it has a mechanism to restart a daemon.
    There are start and stop commands in launchctl, but the man page indicates that they are for debugging purposes.
    I also imagine you could just kill the ntp daemon and let it restart with new settings. It is most likely set to "keepAlive" so that it will automatically restart.

  • Lost start menu icons and not listed in right click open with option +more.

    Weird. I need help. Quicktime 7.3.0.70 only--Start menu lost it's icons in the quicktime folder. When right clicking video files, the "open with" option no longer displays quicktime as a program. And lastly, open an avi file or even mpg and the program stops responding without even getting to play the file. I've uninstalled and reinstalled multiple times but can't seem to fix these issues. Can anyone help? Thanks. This just seemed to happen out of the blue.
    Message was edited by: sallem

    I also have lost the icons for Quicktime in my start menu under Windows XP. The icons actually work when you do click them but the icons are not loaded. Everything functions fine and it's the newest version of Quicktime installed. I also have the newest version of iTunes installed. I ended up manually adding my own icons on the start menu as I've uninstalled and reinstalled Quicktime several times to no avail and even attempted to flush the windows icon cache. No go. This just started happening recently.
    It's not happening on my WinXP Pro laptop however, although I've yet to upgrade to the latest version of iTunes+Quicktime.
    *Right-Click Open With Menu still functions properly and the icon image is appearing correctly in that menu.
    Message was edited by: ZenFool

  • How can i launch firefox AND adds-on (web of trust, http header with options for exemple) in commande line ?

    How can i launch firefox AND adds-on (web of trust, http header with options for exemple) in commande line, on windows ?
    firefoxe... -option? <addon name>?....?

    Does opening this page help: <b>about:addons</b>
    *https://developer.mozilla.org/en/Command_Line_Options

  • Command line option to specify Bridge master cache

    Please allow a bridge command line option to allow the user to select a specific bridge master cache.
    The  motivation is as follows:  I have written a c++ programme to key-word  all of my many thousands of photo projects.  Essentially each project is  in a separate directory on 8 terabytes of networked disk.  Associated  with each directory is a set of key words.  When the appropriate project  is selected, I invoke Bridge to open that directory, possibly with a  specific images as the "starting image" for that project.  Since the  master cache files are split (to accomodate the 500,000 max image count  supported by bridge), it would be excellent if I can pass a reference to  the specific master cache associated with that directory.
    A second value of this option would allow the user to create desk-top short-cuts to invoke bridge using an appropriate cache structure.  For example, the properties of one short cut could specify the cache file for the current daily use of the Bridge to process images in progress.  A second could point the the cache associated with the historical first 400,000 image archived on the network, and a third could invoke bridge pointing to the cache for the next 400,000 image cache - or whatever grouping the user needs to match his workflow when using Bridge as the central focus for various digital assets..
    This type of processing allows the user to conveniently invoke bridge according the the needed work flow when multiple cache systems are required.  In addition, the multiple desk-top shortcuts would minimize the "error" of having bridge pointed, by accident/neglect, to the incorrect cache structure.
    It would also be valuable to allow the user to display the current number of actual image items in a cache system - either as a "view" or "tools" option.  This would allow the user to know when it is time to start a new master cache system. Of course, this can be intependently viewed in windows explorer by the count of files in the 1024 or 256 directories - however maybe the cache structure already "knows" this number instantly.  Other statistics could be interesting as well - possibly the number of directories known to the cache (possibly the same as the count of directories within the 1024 or 256 directories). Possibly the number of files cached by file type (jpg, tif, psd, cr2, nef, etc) would be of interest to some folks - however, such things should be user-selectable since such analysis might be time intensive and maybe of no interest.
    Of course, I do not know if this is consistent with other uses of Bridge - this request is made based upon my use of Bridge as a still photographer and a few videos I have created.
    thank you....
    tony

    I'm going to be technical for a minute, just for the Forum archives...
    The Library file location is stored in your "iTunes Prefs.xml" file in<pre>%APPDATA%Apple ComputeriTunes</pre>.
    Actually, I should say that if you are using a non-default location, there is a key for "iTunes Library Location:1", e.g.:
    <key>iTunes Library Location:1</key>
    <data>
    QwA6AFwARABvAGMAdQBtAGUAbgB0AHMAIABhAG4AZAAgAFMAZQB0AHQAaQBu
    AGcAcwBcAFQAZQByAGkAZABvAG4AXABNAHkAIABEAG8AYwB1AG0AZQBuAHQA
    cwBcAE0AeQAgAE0AdQBzAGkAYwBcAHQAZQBzAHQAbABpAGIAcgBhAHIAeQA=
    </data>
    The "data" is a base64-encoded UTF16-LE string that is the folder containing the "iTunes Library.itl" file and "Album Artwork" folder. In the above case:<pre>C:Documents and SettingsTeridonMy DocumentsMy Music     estlibrary</pre>
    The key/data pair does not exist if you're using the default Library location.
    Similary, there is a key/value pair for "iTunes Library XML Location:1" -- except this part always appears, even if you are using the default location. Also, it is the full path to the file itself, not just the directory containing it. e.g.:<pre>C:Documents and SettingsTeridonMy DocumentsMy Music     estlibraryiTunes Library.xml</pre>
    Since it doesn't appear that double-clicking on the Library file you want to open works, I'm guessing the only way to swap locations is to edit the preferences file -- either directly, or with a script/program. I could probably write such a program in a 1/2 hour or so... I might just do that right now.

  • Export to PDF with Options

    Hi,
    I would like to export the active document to PDF with options [Standard options] using vbscript.
    Is there any sample or references for this?
    Thanks,
    Shailesh

    A quick copy to help you getting started.
    myInDesign.ActiveDocument.Export "Adobe PDF", TargetPDFfilepath, False, IDPDFPresetName
    The command can be found in VB reference guide (and scripting guide I believe)

  • Split PDF by pages using command line options

    Hi,
    I am after a product to split a PDF file by pages / bookmark using command line options.  It would be good, if the product comes with functionality to call from VB/.NET SDK.
    I googled and came across many products, out of these following looks good.  Has anyone used this.  Please suggest me.
    www.neeviapdf.com
    www.coherentpdf.com
    Thanks
    Sarav

    You are posting in the wrong forum. This forum is for Acrobat Scripting.

  • Command, Tab option not showing all open applications

    Hi,
    Just upgraded to Mountain Lion and now when using the combination of Command+TAB not all open applications are displayed.
    This seems like a bug or am I missing something

    I want to add to list as having same issue... Even core Apple programs not showing up (Safari, iPhoto) in Command Tab. But Mail, iCal do show up in Command + Tab.  Also noticed that only some applications "minimize window into the application icon", while others get minimized to bottom right of Dock.  Additionally no "Show indicator lights for open application" appears for those missing programs.  I attempted to select-unselect both of those in the Preferences -> Dock options and restart a few times, with no success.
    The same programs missing from Command + Tab are also missing a graphic icon in Dashboard view (only Application Name appears).
    Issue is new to OS X Mountion Lion, I did not have that problem before.

  • HT4710 when i try to go into iphoto i get a message To examine and repair permissions, quit iPhoto. Press the Command and Option keys while you open iPhoto, and select "Examine and repair iPhoto Library file permissions."

    in iphoto i get the shreen with just thr download circle and nothing happens. i click on on edit and get "
    To examine and repair permissions, quit iPhoto. Press the Command and Option keys while you open iPhoto, and select “Examine and repair iPhoto Library file permissions.“
    it still does not work

    Have you tried doing what it says?
    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

Maybe you are looking for

  • Display iMovie output on external display?

    I would like to be able to occasionally display the iMovie I am editing on a real TV screen for others to observe and comment on - sort of like what I recall Professional Video Editors use. I've used a jury-rig setup several times (but I am not very

  • How to test/consume asynchronous web services in SAP?

    Hi, How do we test/consume asynchronous web services in SAP - either version 4.7 or ECC6.0? TIA, Regards Deepthi

  • Automatic Payment Program - Make House Bank Non- Editable

    Dear All, One of our client wants to make sure House Bank is not editable during Automatic Payment run!! i.e., Edit Proposal should nt basically allow the user to change the House Bank. Is that Possible. If so.. please advice how to acheive that. Tha

  • Screen Sharing debug

    I was wondering if there is a log file for screen sharing, or how I can enable debugging? I am trying to connect using a VNC client, this works on my internal netowrk but I cannot get access from outside despite adding the correct port forwarding rul

  • HP system restore and factory reset not completing

    Hello. 1:  Person tried a system restore to fix a user profile problem but once booted the OS changed the  user profile to "temporary" every time, checked the original profile but only the avatar was left , all other personal info was gone.       Wor