Can you tile windows from Javascript in CS3?

I have a javascript that will open 2 images in Photoshop from different directories based on a single filename, so that the users can view them side by side. They need this to be able to compare the colour correction from an automated process against the original image.
The trouble is that even though I can open the images, I cannot invoke the "window/arrange/tile vertically" menu item, as I can with InDesign.
Does anyone know of a neat trick to get around the missing tile vertically command within Javascript for Photoshop CS3.
(I've trawled the web and found that most answers are for 4 or more windows, where the images are pasted into one doc. But here I need to keep the windows separate.)

One way to do this in CS3 is with an action. Make a new action then stop recording. There should be no steps in the action. From the action panel's flyout menu choose insert menu item. Then choose the "window/arrange/tile vertically" menu item. You now have an action that you can call from a scipt to tile the two images.
Another way is to use Xbytor's doMenuItem function
// adatped from Xbytor's xtools stdlib.jx
doMenuItem = function(item, interactive) {
   var ref = new ActionReference();
   ref.putEnumerated(charIDToTypeID("Mn  "), charIDToTypeID("MnIt"), item);
   var desc = new ActionDescriptor();
   desc.putReference(charIDToTypeID("null"), ref);
   try {
     var mode = (interactive != true ? DialogModes.NO : DialogModes.ALL);
     executeAction(stringIDToTypeID("select"), desc, mode);
   } catch (e) {
     if (!e.message.match("User cancelled")) {
       throw e;
     } else {
       return false;
   return true;
doMenuItem(stringIDToTypeID('tileVertically'));
Note newer version of Photoshop have a app method named runMenuItem that can be used instead of a custom function.

Similar Messages

  • Can you TILE WINDOWS in OSX Tiger?

    I don't mean like Expose, but like the feature in Windows that lets you tile all open windows horizontally or vertically depending on preference.
    The point of this is that I want to see all open windows (across applications) while working in a specific program.
    Windows allows me to do this with a click, does Mac?

    HI, Terrabay.
    There is no system-wide Tile function like you describe. Some applications support tiling of their windows, which would be under their Window menu. Whether or not tiling is supported is application-specific.
    The "All Windows" Exposé shortcut —  F9 by default — displays a spread of all open windows in all running apps, save those windows which have been minimized to the Dock, from which you can select a given window. See this KB search for all Exposé-related Help.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Can you install windows from a back up file on external hard drive?

    I originally received Windows 7 Professional from a friend who was in computer sciences at the local university and received free software as a perk. It was downloaded and burned onto a disc, which she loaned to me so I could use it with Bootcamp. There were some issues with the registration, but after some time with Windows tech support everything was set up and working well, fully legal. I am no longer in contact with the friend, and I returned the boot disk to her, hence my current problem.
    Today I decided to expand my bootcamp partition by using winclone to create an image, then merging the partitions and repartitioning with boot camp assistant. Unfortunately winclone didn't work for some reason. When creating the image I got an error message telling me to check the logs, which I unfortunately ignored since it appeared to have worked anyways. Now when I try to restore the image to the botcamp partition I get the error "Image file not found."
    I did a back up of my windows partition before I started everything, so I still have my data. The problem is getting it back into the partition... I have a blank partition sitting there with no operating system. Is there some way to completely reinstall windows onto a blank partition using only the back up files?
    As far as I know none of my friends have a start-up disk that I could borrow, and being a poor student I don't have the $300 to buy another copy of the operating system.

    Martin_Had a écrit:
    Thank you Andaleeb. I appear to have an old backup of a year ago, and a more recent full back up plus an incremental backup.
    Regrettably I don't really understand what is going on because firstly the restore does not complete its cycle so I cannot see what that backup file contains and secondly all I have read would suggest that the .tly file is the full backup and the catalog.buc file is the incremental backup. For the present, the catalog shows the photos for 2014 which makes me think I might have backed from the old back up file.
    I am minded to create another catalog and try again.
    Any views on what I can do?
    A backup (full or incremental) is a folder, not a file. It contains renamed pictures file copies as well a copies of the files and subfolders of the original catalog. The catalog.buc is a renamed copy of the database of your original catalog while the backup.tly. That backup.tly file contains the information to restore the renamed pictures where you decide, the original location or a new custom one. You can't do anything with the backup yourself, only the restore process can do the job if it finds the backup.tly file. In the case of an incremental backup, you have to tell the restore process where to find the incremental backup folder; it finds the backup.tly file in that folder and finds what is to restore there; then it asks you for the previous backup folder (in your case the full backup); you then browse to that full backup folder so that the restore process can find find the backup.tly there; the restore then deals with the rest of the files to restore.

  • Can you sync attachments from an iPhone to a Windows PC with Outlook 2007?

    Can you sync attachments from an iPhone to a Windows PC with Outlook 2007? I would like to receive email on the iphone with attachments and then sync the attachments to a Windows XP PC with Outlook 2007 without Outlook 2007 having to connect to the mail server itself and having to separely download the attachment. Is this possible?
    I have only tried one pdf file which downloaded wonderfully to the iPhone. I synced to the PC without the PC being connected to the email account. This also worked except that when I tried to open the attachment on the PC I got a message that the mail wasn't fully downloaded. When I went on=line on the PC, it downloaded the attachment. I would love to have this option because I can't access some email accounts from my corporate computer.

    Can you sync attachments from an iPhone to a Windows PC with Outlook 2007? I would like to receive email on the iphone with attachments and then sync the attachments to a Windows XP PC with Outlook 2007 without Outlook 2007 having to connect to the mail server itself and having to separely download the attachment. Is this possible?
    No it is not. The only information synced regarding email accounts is the email account information only and this is in one direction only - from your computer to the iPhone via iTunes.

  • HT4796 Can you transfer files from a window based back up hard Drive to a mac ?, example word files , iTunes, picture files thanks

    Can you transfer files from a window based back up hard Drive to a mac ?, example word files , iTunes, picture files thanks

    Shermanbva,
    Here's an article that details the various ways you can get Windows files onto a Mac:
    Switch Basics: Migrate your Windows files or system to your Mac
    http://support.apple.com/kb/HT2518
    Have a good one,
    - Ari

  • Can I Tile Windows in Tiger?

    Can I Tile Windows in Tiger like on PC? Sometimes I just want to work with all my windows visible at the same time.

    HI, Terrabay.
    There is no system-wide Tile function like you describe. Some applications support tiling of their windows, which would be under their Window menu. Whether or not tiling is supported is application-specific.
    The "All Windows" Exposé shortcut —  F9 by default — displays a spread of all open windows in all running apps, save those windows which have been minimized to the Dock, from which you can select a given window. See this KB search for all Exposé-related Help.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Can you import music from an itunes from one computer to another?

    can you import music from itunes on one computer to another?

    There are a number of things you could do. One would be to network the to computers and transfer your iTunes folder from one to another. You can also use your iPod as a hard drive and move the folder with it though that would be considerably slower than computer to computer. Here are a few links that may help you out:
    New PC & moving iTunes library
    iTunes: Copying music between authorised computers with iTunes for Windows
    How to use your iPod to move your music to a new computer
    This article describes moving your music to another drive on the same computer but could be adapted to moving between networked computers: Moving your iTunes Music Folder

  • Can you transfer music from a nano to a ipod touch?

    Can you transfer music from the nano to the ipod touch? how?

    After connecting your Ipod Touch to the computer and its icon appears in iTunes, you can choose Transfer Purchases from iPod (Ipod Nano) from the File menu.
    Or you can right-click (Windows or Mac) or Control-click (Mac only) your Ipod Touch in the iTunes Source list, then choose Transfer Purchases from the shortcut menu that appears.
    Please note that this feature only works for items that were purchased on the iTunes Store. Any items imported from audio CDs or acquired from other sources will not copy from your iPod or iPhone to the iTunes library.
    Hope that helps you out.

  • How can I uninstall Windows from my mac?

    how can i uninstall windows from my mac?

    Use the Boot Camp Assistant in the /Applications/Utilities/ folder to return the drive to a single partition setup. If you were running Windows from a disk image, delete that image.
    (60975)

  • Can you stream music from an iphone to the bluray over the wifi?

    Can you stream music from an iphone to the Sony Bluray model BDV-E770W over the wifi?

    Can you sync attachments from an iPhone to a Windows PC with Outlook 2007? I would like to receive email on the iphone with attachments and then sync the attachments to a Windows XP PC with Outlook 2007 without Outlook 2007 having to connect to the mail server itself and having to separely download the attachment. Is this possible?
    No it is not. The only information synced regarding email accounts is the email account information only and this is in one direction only - from your computer to the iPhone via iTunes.

  • Can you transfer music from mac to pc?

    Can you transfer music from the mac to a pc?

    Yes. Move the song files as you would any file, and then drag them into the open iTunes application window.
    (65451)

  • Can you upgrade windows xp to windows 7, can you upgrade windows xp to windows 7

    Can you upgrade windows xp to windows 7, even if you partioned your HD with windows xp?

    And if that doesn't answer your questions, the answer is "yes, yes" -- but you'll have to do a clean install rather than an "upgrade". I believe you can only go from Vista-> 7, but double check that. You sure the hardware can handle the jump from XP to 7?
    A quick expansion on that, they both can use the same or different filesystem formats (for instance, XP might use FAT32 or NTFS... whereas Win7 will most definitely want to use NTFS at least). Not to mention FAT32 would cap your usable hard drive capacity because of mathematical limits (so would NTFS eventually, but these days, with FAT32, you'd notice it.... unless they use some addressing extention mode -- no need to even talk about that).
    One definite thing is they will use two different boot loaders. The old using NTLDR and the new using the BOOTMGR/GUID booting uhm... they're just two different mechanisms and monsters -- but you CAN run Windows XP and Windows 7 side by side within your "Windows" partition-- that is a possibility. So you'd literally have a dual booting dual boot machine, haha... Choose OS X or Windows, then have to choose XP or 7. Good luck, buahaha... don't end up in the wrong version of Windows... it could ruin your week! (Official "wrong version" #1 is Windows ME, second official "wrong version" is Windows Vista. I was made to use both at differing points. God help me, I think it left lasting damage).
    You actually have a Mac and want to use Windows? Why? LOL. Let's trade. I'm using Windows 7 and would much prefer it be OS X! Actually I was cleaning all of these orphaned folders, DLL files, leftover temporary garbage files and registry keys left behind as a result of using a PC for any period of time... In fact, my virtualized OS X Snow Leopard runs faster being EMULATED than the actual host OS itself! Bass ackwards, that one!

  • Can you transfer music from one ipad to another

    can you transfer music from one ipad to another??

    Are you trying to share music with a friend or are you putting music from an old ipad to a new one?

  • Can you move photos from one album to another on IPAD3

    can you move photos from one album to another on an IPAD 3

    These links may be helpful.
    How To Create Photo Albums http://tinyurl.com/cxm4eoq
    How to Add New Albums in the Photos App on the iPad & Add Photos to the Album
    http://tinyurl.com/7qep7fs
     Cheers, Tom

  • How can you transfer data from one ipod to another ?

    How can you transfer data from one ipod to another ipod ?

    The geniusbar told me what to do, I understood but there is still a problem for me >:/ It's not showing up though. Like "device."  Nothing is happening, and I tried as soon as I got home. Then after half an hour, then an hour, then 3 hours. My problem is that it's not showing up! It's stuck in recovery mode! There's still like 25% battery. So I have no idea why.

Maybe you are looking for