How to make applescript open more than one program at once?

Hi! I made the code below to use together with another 2 codes. One that mounts a samba share and another that runs rsync with specific parameters. The script below runs after rsync complete its task.
The 3 codes help me to test my HTML/CSS/PHP/Javascript code changes.
This code works but I have to repeat it to each browser/app I want and a 10 lines script becomes 40 lines (Google
Chrome, Firefox, Opera and Safari). Is there a more elegant way to do that? I've tried to use an array/list but didn't work.
if application "Safari" is running then
    tell application "Safari"
        activate
    end tell
    tell application "System Events"
        tell process "Safari"
            keystroke "r" using {command down}
        end tell
    end tell
end if

Nathan Greenstein already answered in AskDifferent: http://apple.stackexchange.com/questions/54595/applescript-array-of-applications /54598#54598
Quoting him:
set browsers to {"Google Chrome", "Firefox", "Opera", "Safari"}
repeat with browser in browsers
    if application browser is running then
        tell application browser
            activate
        end tell
        tell application "System Events"
            tell process browser
                keystroke "r" using {command down}
            end tell
        end tell
    end if
end repeat

Similar Messages

  • How to make manager approve more than one request in one time in SSHR

    Dear All,
    Anyone has an idea on how to make manager approver more than one request in one time in SSHR??
    for example, manager is having 20 requests to approve on Change Pay Function, he don't want to check one by one and approve it, he want to approve the 20 requests directly from one time, is there any solution for that??
    Thanks and Regards

    Hi Adel,
    As Vignesh has mentioned we don't have any standard functionality which will allow bulk approvals. We had same kind of requirement in performance management where the business was asking for a bulk approval feature which should be available to Skip level manager for approving the rating suggested by line manager. We had created a custom page which will list all the notifications and user can select the ones which S/He wants to bulk approve and click submit button. Internally we had called the workflow with item key and other required parameter and do the approval.
    You can have a work with your technical guy and can work on the same lines.
    Thanks,
    Sanjay

  • Can't open more than one file at once (Indesign CS3)

    hi there
    I have to deal with a strange problem, every time (well actually randomly) I try to open more than one indesign file at once, indesign just stays in the background and I can't get it to show up.
    the only thing I can to is force quite the application and restart indesign. Sometimes I'm able to see one of the open documents but I can't do anything with it (as there are no tools and no other indesign windows).
    Im not the only one having this problem, my work mate just updated his osx from 10.4 to 10.5, and now he is having the same problems...
    any suggestions why that is?
    cheers
    (my system: mac 2x2.66ghz dual-core intel xeon, 1gb ram, osx 10.5.2, indesign cs3
    my work mates system: mac G5, 1gb ram, indesign cs3, osx 10.5.2)

    Every system has issues when its first released.
    What's the point of jumping to a new system on a production machine when everything works perfectly in the old system?
    Monitor these forums and other boards and as soon as Apple and Adobe have a fix jump to the new system.

  • How to display in KPI more than one dimension at once

    Dear Experts,
    We are using SSM 7.5 SP 7 and are trying to display more the one dimension at once on the same KPI.
    For example KPI "on time delivery" :
    Destination from (dimension 1) , Destination To (dimension 2) , ACTUAL, TARGET , SCORE , ETC
    GERMANY  , JAPAN ,  80 ,  75 , 5 , .....
    Could not find a standard option for that only one dimension on the row the rest are on top for the entire screen.
    would appreciate your help
    thanks
    Amir

    Hi Amir,
    If you want to do this for only one KPI, you can do so using the KPI Detail screen.
    Just click on the name of your KPI to navigate to the KPI Detail screen and then you can use the "Drill" button located on the top of the trend graph at the bottom of the screen to visualize the KPI information (Actual, Target, Score, Gap Performance) across multiple members of the same dimension.
    You need to select the dimension on the upper right hand side of the chart (there is a drop down list with all your dimensions so you can focus on one) and then you can drill down by clicking on the elements on the chart.
    I hope this helps,
    Hector

  • How to apply effect to more than one clip at once

    Is there a way to select a number of clips and apply an effect (like three-way color correction) to all clips at once? Right now I can only double-click on one clip and touch up one at a time.
    On a similar note, my photo editing software has something called "tone curve adjustment" which is the best device I've used for adding light to a dark image without losing integrity and quality. Any idea what the closest thing to that would be in FCP? Adding brightness flattens out the image and makes it milky and grainy. Could it be that I should avoid whites and middles and concentrate on black and saturation?
    Thanks.

    Question 1:
    Copy the clip with the color correction.
    Select all the target clips.
    Control-click on the selected clips and choose "Paste Attributes".
    In dialog box, select "Audio Filters"
    If you want to keep working the CC later,
    it might be easier to nest the clips.
    Option-double-click on the nested clips
    and apply global effects to all of them at once.
    Question 2:
    This is something like Photoshop's Curves with the menu set to RGB?
    Working with dark footage, I often use the Color Corrector 3-Way
    and boost the Mids level a bit. If that pushes the Whites too much,
    pull them down.
    I often "crush the blacks" by using a second 3-way, using Limit Effect
    with Luma only, selecting only the darkest parts of the image,
    and pulling the Blacks down to minimum. That makes the whole image
    more dramtic, and reduces the effect of noise when you compress it
    for DVD or web delivery.

  • Basic, basic question - how to order prints from more than one album at onc

    I am having two problems with iphoto - I would be most grateful for any help. First, when I go to upload my photos to a web-based printing company (like shutterfly or snapfish), and I click on the vendor's "browse" photos to find the album to upload, the way the photos come up does not correspond to my album titles in iphoto, so I can't find them. I have my photos sorted in labeled albums, and would like to upload them as such, but when I click on iphoto library, it brings up all kinds of other files that don't correspond to my current file labels. Can anyone help?
    Equally irritating, when I use apple's "order print" features, it only lets me order from one album at a time. I'd like to order from multiple albums all at once, without paying shipping for each one. Any ideas? Again, most grateful for any advice.

    Hi, Sestew, and welcome to Apple Discussions.
    Problem 1: Export the photos you want printed from iPhoto to a folder on the desktop. Use the printer's browser to navigate to that folder and upload them to the printing company from it. After uploading them, trash the folder that contains the exported copies. The pictures are still safe in your iPhoto library.
    Problem 2: Create a new album and place all the pictures you want printed in it. (A photo can appear in any number of albums, so doing this won't remove any of the pictures from the other albums they're already in.) Then order that album printed. Delete the album after ordering, if you wish — the pictures will remain in whatever other albums you've placed them in.

  • How to delete keywords from more than one image at once?

    Is there any way to delete all the keywords from a selected group of images all at once?
    I've selected a group of images, but when I delete the keywords, it only deletes them from the highlighted (targeted?) image and not from the other selected images. I've also tried syncing metadata and I get the same results.
    Help would be appreciated.
    Antonio

    Interesting bug I just found, I think.
    When the Grid is up on the second monitor, only one images is affected by the deletion of the keywords. When I put the Grid mode back on the main screen, I was able to delete keywords from all the selected images.
    Shouldn't it work the same no matter what screen the Grid mode is on?

  • Firefox won't let me open more than one window at a time. how do i fix the problem

    Firefox won't let me open more than one window at a time. It use to allow me to open multiple windows before but for no apparent reason it stopped. I uninstalled it and re-installed but I'm having the same problem. How do I fix the problem
    == This happened ==
    Every time Firefox opened
    == several days ago

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • How can others open more than one form? [Was: Sandra]

    How do you use Forms Central? I am the only account that can open more than one form. I have added all the people in contacts. When they login, they have the upgrade option for more than one form. We have an order number and end user id. Thanks for the help.

    Hi,
    It sounds like you have a paid account and the other users have free accounts.
    You will have to share the form with the other users, please see this link for more detailed on how to share a form with others:
    http://forums.adobe.com/docs/DOC-3351
    All the free account users should be able to open all the forms that you have shared with them. Free users can only create one form on their own.
    Hope this helps,
    Thanks
    Lucia

  • Using Maverick, how is it possible to open more than one calendar window?

    Hi, I'm using Maverick 10.9.1
    My question is: how is it possible to open more than one calendar window? i would like to have on the right my personnal calendar dates and on the left, my company calendar.
    Many thanks in advance for your help!
    ph

    See if the section on group calendar helps.
    http://www.dummies.com/how-to/content/basics-of-calendar-in-os-x-mavericks.html

  • How to open more than one RAW-File by drag&drop/doubleclick with CS2?

    Hello,
    is it possible to open more than one RAW-file from iPhoto with Photoshop's RAW-converter in just one single step? If I drag&drop my selection to my Photoshop-Icon, PS opens just the iPhoto-created library-JPGs of the RAW-files but not the RAWs itself (I've turned out the copyying of the imported photos to the iPhoto-library. Instead iPhoto seems to create a JPG for the library from every RAW I import). If I doubleclick a selection of RAWs in iPhoto just the doubleclicked RAW-File will be opened in Photoshop. Is it possible to select more than one RAW-file in iPhoto and get Photoshop to open all the selected RAWs but not the JPGs? It would make my work a lot easier... thank you.
    rockenbaby

    hello
    try selecting the photos that you want however many- go, File then Export.
    you can make all your file selections image size etc and then save them direct to your PS file.
    hope this helps.
    cjp

  • How do you open more than one image at a time in Camera Raw?

    We used to be able to select more than one image from a folder and process one after the other in camera raw. Now we can only do one at a time. Is there a secret keyboard short-cut to allow this still?

    Which operating system are you using?
    One should still be able to open multiple files into camera raw.
    Camera raw files. tiffs and jpegs.
    If in the pse 13 Editor in the Expert mode you go to File>Open in Camera Raw, you aren't able to open more than one file into camera raw?

  • Upgraded to iOS 6 and now I can't open anything in the kindle app? I have to say that I have had my ipad3 for 6 months and intensely dislike the problems with using it. Also is there any way of opening more than one screen as it is hopeless otherwise?

    I Have had my iPad for 6 months as I cannot access my work emails using windows. I have to say that it is the most unhelpful device I have ever used and although it looks like there isn't an answer for some of the questions I have asked below, I thought I would try!
    1) I have upgraded to ios6 and the kindle app will open but crashes and disappears when I try to access a book?
    2) is there any way I can open more than one page at a time, as opening one at a time is hopeless?
    3) Is there any way you can replicate the right click function on word? As pasting and copying on the iPad is irritating to say the least!
    4) why can't my Samsung 11 phone connect to my iPad via Bluetooth? A they can't seem to 'see' each other? I may have turned a setting off when I was recently abroad and didn't want huge roaming charges.
    5) Why do the submit buttons on some websites not work and how can I get them to? I never have a problem with windows, but it is often a problem with the iPad.
    6) I have several websites which I have built and usually upgrade on the windows desktop, usually through Internet explorer, but I can't access the sites properly on the iPad (I can see them but can't alter them) and when sending emails through the websites they won't show the page and I can't navigate the page (the size of the email page is bigger than the iPad screen, but I can't either shrink the page to size or move the page around as you normally would on the pad, any ideas?
    7) finally, when roaming abroad recently, I had no problems using the wifi, but when trying to use the cellular data (using the roaming function) I could not get it to work? The ipad seemed to be connected to the network with no problems, but wouldn't actually update the emails? I tried turning it on and off, but that didn't make a difference. My kindle and mobile phone (both also on 3G ) worked great, it was just (as usual) the ipad playing up.
    8) when wanting to alter part of a sentence, I can't always get the cursor in the right place? Sometimes it is simple the wrong line, but often it will only go at the end or start of a word and not where I want it. Is there any way of making it more exact? Again I never have a problem with moving the cursor on windows, either by mouse or on the touch screen function on windows 7. Any ideas? As after pressing the screen multiple times I just want to throw it out of the window!
    IT might just be that I don't have the correct settings (I am a technophobe) but I absolutely hate the iPad and only have it for work emails, it is so annoying that I can get my mobile phone and kindle3g to work fine, but always have problems with the iPad. I am sure it could be good (and for reading emails on the go in the uk it is great, as I like the key board) but it just seems to make everything else difficult.
    i Hope you can help and sorry for asking questions others have, but I am just hoping that something new might have been developed!
    thanks,
    K
    Message was edited by: K Paton

    1) I have upgraded to ios6 and the kindle app will open but crashes and disappears when I try to access a book?
    Try rebooting your iPad, that should fix he issue. I that doesn't work, delete the app and re-download it.  The Kindle books should all be in he Kindle cloud services and you can get them again. I have an iPad2 w/ Kindle app and it works just fine - no issues.
    2) is there any way I can open more than one page at a time, as opening one at a time is hopeless?
    Page as in a kindle book way? turn iPad to landscape position from portrait position. If, however, you mean open more than one application at a time, then no. And not hopeless, as it takes a bit of time to get used to, going from a desktop/laptop format to tablet format.
    3) Is there any way you can replicate the right click function on word? As pasting and copying on the iPad is irritating to say the least!
    It's actually fairly easy. Press down on the word, then you can expand by drawing your finger to cover word/sentence/paragraph/page, hit select or select all then it gives you the option to cut, copy, paste, define. If you want to use a word processing app on the iPad, Pages is a good application.
    4) why can't my Samsung 11 phone connect to my iPad via Bluetooth? A they can't seem to 'see' each other? I may have turned a setting off when I was recently abroad and didn't want huge roaming charges.
    It's the connection on your phone. Samsung Galaxy SII? Android software?  What you have to do is go to the phone's settings and connect via wireless, not Bluetooth. Go to System Settings (on phone) and under Wireless and Networks click 'more' and go to the Tethering and Portable Hotspot option. Set up your mobile wifi hotspot,  name it though it will probably come up with 'AndroidAP', choose a WPA2 security level and put in a password. Go back to previous screen and turn on 'Portable Wi-Fi Hotspot' box. Then on your iPad in the Settings - Wi-Fi section, it should then recognize your phone for tethering. If it's a Windows Phone 7,  I don't know the layout of that software, but presumeably similar.
    5) Why do the submit buttons on some websites not work and how can I get them to? I never have a problem with windows, but it is often a problem with the iPad.
    Sometimes the issue is with the website design, not all websites are optimized for mobile devices - not just iPad but also Android devices. It happens. They're getting there, but occasionally the page might need a refresh.
    6) I have several websites which I have built and usually upgrade on the windows desktop, usually through Internet explorer, but I can't access the sites properly on the iPad (I can see them but can't alter them) and when sending emails through the websites they won't show the page and I can't navigate the page (the size of the email page is bigger than the iPad screen, but I can't either shrink the page to size or move the page around as you normally would on the pad, any ideas?
    It depends on what you use to build the websites on the computer. Recommend a free program on the computer called CoffeeCup Free HTML Editor. I don't recommend using IE period; Firefox or Chrome are my choices on Windows machines. I have two websites that I manage, both using this program. I'm assuming that when you mean you can't access the sites on the iPad you mean to update them? Ostensible there are apps to let you do this. What format are the sites? Without seeing what exactly you mean and what you want to do, it's hard to explain.
    As for seeing full page while emailing within a site, turn iPad to portrait mode, and try to finger-pinch touch the screen to see if that will bring the fuller page  into view. Other option is opening a second tab with same website and just go between tabs to reference material.
    7) finally, when roaming abroad recently, I had no problems using the wifi, but when trying to use the cellular data (using the roaming function) I could not get it to work? The ipad seemed to be connected to the network with no problems, but wouldn't actually update the emails? I tried turning it on and off, but that didn't make a difference. My kindle and mobile phone (both also on 3G ) worked great, it was just (as usual) the ipad playing up.
    If you were outside the US or Canada, my guess is the problem lies within the SIM card in your iPad. If you were outside North America, there are different band levels - I'm guessing you have a SIM thats locked to a particular provider. Band level frequencies differ per country/continent, so a SIM card that will work in Canada/US will not likely work in UK/Europe/Asia/Australia, etc. you will be able to get your emails again when back on a wifi network. Mobile phone may have a different type SIM card (GSM/HSPA) from your iPad SIM. Also, check your email settings.
    8) when wanting to alter part of a sentence, I can't always get the cursor in the right place? Sometimes it is simple the wrong line, but often it will only go at the end or start of a word and not where I want it. Is there any way of making it more exact? Again I never have a problem with moving the cursor on windows, either by mouse or on the touch screen function on windows 7. Any ideas? As after pressing the screen multiple times I just want to throw it out of the window!
    Moving the cursor on a sentence is a matter of putting your finger on the screen where you want it. It's exceptionally easy to do. I'm using the Notes app to write this whole segment and I just need to put my finger where I want to change things and presto it's ready for me to change where I want it.
    Here's a solution: sell your iPad (after you wipe your data off it) to someone who will appreciate it, and put your money towards the Windows Surface Tablet out later this year/early next year, where you can (reportedly) connect a mouse to it. It will have some of the Windows 7/8 functionality that you're more familiar with, or get a netbook.
    - Ceridwyn2

  • Error - Can't open more than one image in CS3

    My Photoshop CS3 was working fine until all of a sudden it no longer lets me open more than one image at a time without crashing. Anyone else have this problem? How do I fix it?

    Hi,
    There may be two issues you have to check:
    1) The " scratch disk" feature in photoshop(usually gets full). Go to preferences - performance. Also check how much RAM PS is using.
    2) Printer Communication: sometimes Photoshop is unable to communicate with the default printer(may be unstable drivers, out of date etc). Network computers also make some issues
    If you want to read more about this follow this link:
    http://www.fluther.com/disc/22453/photoshop-cs3-not-opening-more-than-one-image-at-a-time/
    They talk about the issues I mentioned here. Let me know if you found this information useful.
    Vicente Tulliano

  • Photoshop can't open more than one graphic at a time without crashing

    I get the error:
    The instruction at "0x7c918af2" referenced memory at "0x00000010". The memory could not be "written".
    Anytime I try to open more than one image in Photoshop at a time, regardless of how I do it - doesn't matter if I choose the image and "open in photoshop" or if I am in photoshop and go to "file/open".
    It's Photoshop CS3. I have already uninstalled, restarted the computer and reinstalled. I tried to "repair/change" from Windows, but it asks for the CS3 cd and then CS4, which I don't have since I'm using CS3. 
    This is quite frustrating as it would be nice to be able to merge photos and the myriads of other things you can do with multiple images at once, if opening them does not crash your program.

    mikeobe wrote:
    OK, kinda slooow here, I hope I'm not trying your patience!? If I understand you correctly, install dummy drivers and then the drivers that came with my printer, Designating NO default printer! Then when I need to use the printer I will have to declare which one each and every time?
    Or, just intall by new printer but do not Delcare it as the Default printer, I guess in this instance there would be NO default printer?
    You may not even have the problem!
    Have you installed the new printer yet?
    There are many more people who don't see it happen than those who do.
    PS: there is always a default printer.

Maybe you are looking for

  • [CS3] [JS] Picture placement error

    Hi, I've created a script, creating a contactsheet from a folder of pictures. Everything works fine except for one small detail. When importing an illustrator document which uses missing fonts, the script trows a messagebox asking me if its ok to pla

  • How to modify a row from a table?

    Hi experts! I've a doubt, I need to modify a table with some information I've search, if I do the code below, my program works slowly because the tabla ITDATOS has 650 rows... so, the problem is, how can I modify this in another way? FORM RELLENA_DAT

  • HT4907 can I use the back to my iMac network if i am overseas

    I am travelling with my iMac Air as follows: * OS X Yosemite 10.10.1 * 1.7 Ghz intel core i7 * 8 GB 1600 Mhz DDR3 My office computer is iMac * OS X Yosemite 10.10.1 * 2.9Ghz Intel core i5 * 8 GB 1600 Mhz DDR3

  • Cannot connect to database

    Hi everybody, When I try to access to my database with SQLPLUS or Enterprise Manager Console I have the error: ORA:28030:Server encountered problems accesing LDAP Directory Service. I actived both oidmon and oitctl. I type ldapbind -h myhost -p port

  • How do i export a movie as an iso file in ilife11

    How do I export a movie as an ISO file in iMovie11?