[Applescript] How do i make a script: "open a safari website - do something - something else - etc", run in the background before presenting the final result to the user?

I've made a script that does a certain "log in process". It opens a safari website-> does some actions -> opens a new website -> does some actions.
I dont want to "open" the final safari website before the script has ended.

The only way to do it, and even that doesn't always work, is by using a script. The basic code to use is:
app.launchURL("http://www.google.com", true);
The second parameter tells the browser to open the link in a new window.

Similar Messages

  • How do you make all bookmarks open in safari when launched?

    Hello Apple community! New mac user here. I really want to know how to automatically have all bookmarks opened after launching safari. Thanks so much!

    There is no way to open "all" bookmarks at launch
    But you can open a group of them at launch as tabs.
    Click the Book icon in the Bookmarks Bar.
    Click Bookmarks Bar in the side bar
    At the bottom left of the right side pane there is + sign. Click on it.
    A new folder will be created.  Name it.
    Checkmark the box  under the column "Auto-Click".
    The new folder will appear in the Bookmarks Bar
    Add your favorites to it. 
    Click "Add Bookmark" in the Safari toolbar and select the new folder.
    When you launch Safari, items in that folder will appear as tabs when you
    click on that folder in the Bookmarks Bar.
    Best,

  • How do I make new tabs open to my specified home page instead of blank page?

    How do I make new tabs open to my specified home page instead of blank page?

    I generally like to avoid add-ons, and the second option is still an extra step - not opening tabs to the homepage, as requested (rather how to switch to your Home page after a tab opens to the blank page).
    Here's a wild idea: How 'bout a setting option in Tools > Options > Tabs for "Always open new tabs to my Home page" ?

  • I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

  • How do you make adobe X open the "combine pdf" window in the foreground?

    This may not be the correct forum for this question, but considering that I simply
    have not been able to get a reply in any other Adobe forum, I decided
    to just post this question to ALL Adobe forums until I get a response.........
    How do you make adobe X open the "combine pdf" window in the foreground?
    I am using a "Windows 7" computer at work with "Acrobat X Pro" and I'm constantly combining
    pdf's and tiff's in Acrobat.
    It would be nice if when I select 30 or 40 files to combine, the *******
    "Combine Supported Files in Adobe Acrobat" window would open in the
    foreground, not behind the 10 or so windows already open.
    I have been researching this for some time now with no solution.
    If the answer is that "IT CAN'T BE DONE", then that's fine. At least
    I will have an answer and can stop searching. If (as I suspect) it can
    be done, then kindly supply me with "step by step" instructions.
    Michael Jones

    Hi ,
    I guess that was a bug in that version .
    It does not happen in Acrobat XI and Acrobat DC .The window comes right in front of everything else .
    I wonder that was a bug and that was fixed the other versions.
    You could upgrade to the latest Acrobat version ,i.e Acrobat DC and you would not experience this anymore .
    Regards
    Sukrit Dhingra

  • When I open a pdf, it used to open in Preview. Now my iMac requires Adobe Reader, but I prefer Preview. How can I make my iMac open pdf in Preview again?

    When I open a pdf, it used to open in Preview. Now my iMac requires Adobe Reader, but I prefer Preview. How can I make my iMac open pdf in Preview again?

    If an image opens in a different application but you want it to always open in Preview when you double-click it, do this one time: Control-click the file, let go of the Control key, press the Option key, then choose Always Open With > Preview. Or, select the image file, choose Get Info from the File menu, then change the "Opens with:" pop-up menu choice to Preview.
    Mac Basics: Preview app views and edits PDFs and images

  • How do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    how do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    Newer version does not have the same interface.  I'm stuck trying to understand how to add a "blank" target to a hyperlink...  See how your screenshot has a dropdown associated with the "Hyperlink" object?  Mine doesn't...

  • How can I make it so that when Safari opens it takes me to the homepage?

    Say I am on youtube and I quit safari, when I reopen safari later, it goes to the page last open, in this case, youtube. How can I make it so that when Safari opens it always takes me to the homepage?

    Click on the red button (top left) to close the window before quitting.

  • How can i make my hyperlinks open in a new window or tab?

    how can i make my hyperlinks open in a new window or tab?

    The program is InDesign… we need to cease links which will open the linked document in a separate window.  Also, the links must be maintained once a pdf is made and the files moved to another computer….

  • How do you make an application open on a specific monitor?

    How do you make an application open on a specific monitor? I have two monitors, and I was able to get Firefox to open on the secondary display always by resizing it with the option or command key [I forget which one] and then quitting it. Now everytime I start it, it opens on the second monitor.
    However, when I try to do the same with QuickTime [when playing videos], it always opens on the primary display no matter what I do with it. How do I make it always open on the secondary display?
    Thanks in advance for any help!

    Thanks for the suggestion, but no, Spaces is not what I want. I have two physical monitors, and simply want an application to always open on one monitor, not be able to switch back and forth between different desktops.

  • How do I make New window open maximized the way it used to?

    How do I make New window open maximized the way it used to?

    { Ctrl + B } opens and closes the Bookmarks Sidebar.

  • How can I make a intro page for my website, then after the intro has run make the page automatically change to my we site home screen

    how can I make a intro page for my website, then after the intro has run make the page automatically change to my website's home screen

    You can do this using a meta refresh but the problem is you have to add it to the html file for the page very time you publish changes.
    A better way is to create a splash page and upload it to the server outside of the folder produced by iWeb. Example HERE.
    The meta refresh is added to the head section of the html file...
    <meta http-equiv="refresh" content="32;url=http://www.domain.about.com/Page-Name.html">
    The delay time in seconds is marked in blue and the URL to the redirect page is in red.

  • How can I have one thing open in Safari on my MacBook Pro and search for another thing in Safari without closing out of the other? For instance, How can I leave Pandora playing while I search Facebook?

    How can I have one thing open in Safari on my MacBook Pro and search for another thing in Safari without closing out of the other? For instance, How can I leave Pandora playing while I search Facebook?

    With Safari open use the Command + T keyboard shortcut to open a new tab.
    Or, Command + N to open a new window.

  • How can we make quick time player play all formats like AVI, MKV, MPEG etc?

    How can we make quick time player play all formats like AVI, MKV, MPEG etc?

    QuickTime supports many different file types & codecs, but not all.   In many cases you can lookup, download & install specific codecs if you need them.
    The following may be helpful:
    Perian
    QuickTime: About Playing AVI Files
    QuickTime X: Playback of MPEG2 video
    QuickTime 7.6.6  (you may need this if QT X won't play old videos)
    QuickTime MPEG2 Playback Component (for QT 7.x)
    Windows Media Components for QuickTime
    Flip4Mac Player/Pro/Studio/StudioProHD

  • I make videos using my go pro hd camera, but when i export it only half of my 3 min video shows up with the audio playing in the background, plus when i try to select the quality in the export options it won't let me select 720p or 1080p?????? help!!!

    i make videos using my go pro hd camera, but when i export it only half of my 3 min video shows up with the audio playing in the background, plus when i try to select the quality in the export options it won't let me select 720p or 1080p?????? help!!!

    What you could do now is break up your video into smaller parts and render them out, then assemble them again as a whole.
    I know this is not the best fix, but it might work.
    You can duplicate an edit in the main screen, then delete the last bits and export,
    do the same for the other half.
    Then import the two bits (or more if you need) in a new edit.
    Out of curiosity, can you post what format the video is in?
    Copy a video straight from the camera to your computer.
    Open it in Quicktime player, and with out playing type Apple + i
    or Control + i for PCs
    It should tell you lots of info about the video, and might help us to see what is wrong.
    This is what it looks like:

Maybe you are looking for

  • Using Set Cursor Busy in Veristand Custom Device Page

    I am writing a Custom Device in Veristand and tried using the Set Busy vi to disable the cursor while I am doing some tasks on a System Explorer page.  It seems like the Set and Unset Busy vi do not work inside of the System Explorer environment.  I

  • ExtremeMac MicroShield Ipod Nano Case

    Does any one have experience with ExtremeMac MicroShield Ipod Nano Case? How is it compare with the Agent 18 Shield 4 Nano case? Also, do you know the availability of any of them? Thanks for your help in advance!

  • Creation of Disctribution Model view using Distribution using object classe

    Hi All ,          Can anybody tell me how to create distribution model through  Distribution using object classes option in SALE transaction(Path : SALE - > Modelling and implementing Business processes - > master data Distribution - > Distribution u

  • How to release my program to client PC!

    Post Author: looyo CA Forum: Other I develope my program by delphi 7+CR XI R2 VCL; In my develop PC which CR XI R2 is intalled,the program is run OK! Now ,I will release the program to my customer. CR XI R2 will not installed in the client PC. what s

  • Elements 10 not showing a scanned image until the twain driver is closed.

    When I open up Elements 10 and scan into the Elements 10 Organizer  from the Epson Scan Twain driver (V3.04a) the image will not transfer in unless I close Epson Scan. At that time the transfer is completed and I can see the scanned photo in the Orga