KeyNotes and Apple script / scripting Bridge

Hi
Sorry I am a recently started development in Mac OS, so may be this question is very simple for you guys
actually I am looking to manage Keynote application automatically from Mac Server application, I know apple script is available for lot of functionalities available in keynote but i want that all these things happend without showing anything on GUI , like i want to do all the automation on background without effecting the running GUI of keynote
if anybody can have idea how to do it in Apple script or using ScriptingBridge, I will really appriciate your help and support

depending on what you want to do, this may or may not be possible (most likely not).  Applescript works by scripting other applications: some applications are set up do do background tasks, some applications are duplicated by osax or unix utilities that operate invisibly, but most often applescript has to open a document in the application and work on it through the application. 
scripting bridge is for cocoa developers: it allows cocoa apps to script other apps.  it's not really useful for you unless you want to develop specialized software.
more details would be helpful.

Similar Messages

  • Keynote and apple TV

    I really would like to use iPad Keynote with Apple TV. This would be a big money saver for our office during presentations but we cannot see how to do it right now. Basically it would mean we would buy apple TV modules for the office and then we would be free to do presentations in any of our rooms using wireless.
    If this can be done can anyone explain how?
    Does apple have plans to include this ability in future updates?

    To the best of my knowledge, Keynote does not support Airplay, so this would not be possible though an Apple tV. You can, however, connect the iPad to a screen directly either via HDMI (or DVI with an HDMI to DVI adapter) or VGA. Keynote does support video out.
    Whether or not Apple has plans to add Airplay support to Keynote, no one here will know since we're all just fellow users.
    Regards.

  • Keynote and Apple Aluminum Remote

    I have used Keynote for a long time now and never had problems using it with a remote control.
    I updated to Mountain Lion recently and **** broke loose! I cannot get Keynote to work with a remote if I am showing my presentation on a secondary display (an LCD TV connected to my Macbook Pro via an HDMI cable). I did manage to reset the SMC (System Management Controller) but it solved my problem only temporarily. I know the problem is not with the remote because when I use it with Keynote and I am not using a secondary display, it works perfectly. BTW, iPhone and iPod touch remotes are not enabled.
    Anyone knows how to solve this?
    TIA

    An update:
    The remote works well with Quicktime. I had to play an mp3 file and the remote apparently works well with you. Keynote seems to be the culprit...

  • Keynote and Apple Script

    I need a script, runnable on a Mac acting as a server, that can do the following without human interaction.
    1. Open a keynote file - we can open keynote file manually
    Automative should finish following tasks ..
    2. From the "Share" menu within KeyNote, select "Export..."
    3. Choose "Images", keep the format as 'Jpeg' and the quality at 66%, click "Next..."
    4. Create a "New Folder" (may be we can create similar file name like 1.key ----> folder name 1/but this should be done by automatic )
    5. Click "Export"
    6. close keynote
    I need this to be able to run from the command line somehow. I'm not sure the best way to do this: applescript? or work flow ?
    thanks fin advance

    The following script seems to work flawlessly under Mac OS X 10.6.5 with version 5.0.4 (633) of Keynote ’09, using the +default preferences+ of the application.
    Since the script uses [GUI Scripting|http://www.macosxautomation.com/applescript/uiscripting/index.html], you should first enable the Accessibility Frameworks by clicking the checkbox labeled "Enable access for assistive devices" in the Universal Access System Preference pane.
    To run the script from the command line, just type something like the following in the Terminal window:
    *~ username$ osascript /Users/username/Desktop/Keynote\ script.scpt*
    if the compiled script, for instance, is named "Keynote script.scpt" and located on the Desktop.
    (You migh need to adjust the delays if necessary.)
    --Change the following two lines to fit your needs:
    *set theKeynoteFile to POSIX file "/Users/pierre/Desktop/My Keynote Slideshow.key" as alias*
    *set theDestinationFolder to POSIX file "/Users/pierre/Pictures/" as alias*
    --Create a new folder (temporarily located on the desktop) where to export the slides:
    *tell application "Finder"*
    *   set theFolderName to text 1 through -5 of (get the name of theKeynoteFile)*
    *   make new folder at desktop with properties {name:theFolderName}*
    *   set theExportFolder to result as alias*
    *end tell*
    *tell application "Keynote"*
       activate
    *   set theSlideshow to open theKeynoteFile*
    *   repeat until theSlideshow exists*
    *      delay 1*
    *   end repeat*
    *   delay 1*
    *   if playing then*
    *      stop slideshow*
    *      delay 1*
    *   end if*
    *   tell application "System Events"*
    *      tell process "Keynote"*
    *         click menu item "Export…" of menu 1 of menu bar item "Share" of menu bar 1*
    *         delay 0.25*
    *         tell sheet 1 of window (displayed name of theKeynoteFile)*
    *            click button "Images" of tool bar 1*
    *            delay 0.25*
    *            click pop up button 1*
    *            click menu item "JPEG (variable quality)" of menu 1 of pop up button 1*
    *            delay 0.25*
    *            set value of text field "Quality:" of group 1 to "66%"*
    *            keystroke tab*
    *            delay 0.25*
    *            keystroke return* -- click button "Next…"
    *            delay 0.25*
    *            if value of checkbox 1 is 0 then click checkbox 1*
    *            delay 0.25*
    *            click radio button 2 of radio group 1 of group 1*
    *            keystroke "d" using command down* -- desktop
    *            tell outline 1 of scroll area 2 of splitter group 1 of group 1*
    *               select row 1 whose value of static text 1 is theFolderName*
    *            end tell*
    *            keystroke return* -- click button "Export"
    *         end tell*
    *         delay 1*
    *         click button "Export" of sheet 1 of window 1*
    *      end tell*
    *   end tell*
       quit
    *end tell*
    *tell application "Finder" to move theExportFolder to theDestinationFolder with replacing*
    Please let me know if the script doesn't work as expected.

  • Keynote and Apple 30" Display

    What is the best (optimum) size to make a Keynote presentation for displaying on a 30" Apple Cinema Display? The presentation will loop. Should I export the slide show to Quicktime or just use Keynote?

    As in all cases, you'll get best results if the slide size is whatever the "native" resolution of the monitor is. In the case of the 30" Cinema Display, that appears to be 2560 x 1600.
    If the presentation works fine in Keynote, I would not export it to Quicktime, as Keynote can loop a presentation just fine.

  • Airport and Apple Script - on and off script

    I've had this problem for a while, trying to turn the airport card in a computer on and off using and apple script. i need it to automatically turn on or off depending on which account if logging into the computer.
    I did find that a solution can be found by writing an apple script to turn airport on and off. but my scripting skills aren't good and haven't worked thus far.
    So now i'm asking everyone: Can anyone write a script to turn the airport on or off? I bet you can't. (there's some motivation for you)
    I think it's my last resort, turning to other apple user and requesting help, because i have not been able to find another solution or a prewritten script (surprisingly)
    Thanks very much for your help!
    "i'll gladly pay you tuesday for a an apple script today."
    thanks

    I haven't used these tools so I don't know for sure, but doesn't Tiger's parental controls (in the Accounts preference pane) allow you to enable/disable network access by account? Would that work to solve your problem?
    EDIT: OK, by starting a new thread I guess you got the same response that I posted for your previous thread. For those interested, this is a continuation of the thread kevin macky, "Account with and without airport internet access", 08:07am Oct 11, 2005 CDT.
    If you are interested in trying to automate this, I suggest that you post your question in these areas:
    Mac OS X > Mac OS X Technologies > AppleScript
    Mac OS X > Mac OS X v10.4 Tiger > Automator

  • Starting applications from a keynote via Apple Script?

    Is there any way to start an application from a keynote via Apple Script?

    Welcome to the forums!
    Keynote does not support the use of AppleScript in that fashion.

  • I am having trouble with the Jpeg icons and also now thumbnails not being visable in bith teh Apple finder and now also Adobe Bridge. Can anyone shed any light on this ?

    I am having trouble with the Jpeg icons and also now thumbnails not being visable in bith teh Apple finder and now also Adobe Bridge. Can anyone shed any light on this ?

    Argh - once again, I find my solution right after posting this. Left out one modification to the SWIG script, now it runs in 29 seconds vs C 16 seconds, I can live with that.

  • Add xml Tags in Indesign CS4 by Apple/Java script

    Hi,
    All, I'm new to Indesign Scripting, and I'm hoping someone can help me with the following add xml tags in my xml indesign cs4 files.
    I have IDML (ETMV2) xml Indesign CS4 files. But i have lots of powermath equation without xml tags. So i want how i can insert xml tags.
    My probleam like this =>
    <no open xml tags>[&x^{2}+y_{3}&]<no close xml tags>
    I want like this (But i do manualy)
    <inlineequation><inlinemediaobject><textobject role="xpressmath">[&x^{2}+y_{3}&</textobject></inlinemediaobject></inlineequation>
    Can anyone write/suggest me how i can add xml Tags. By Apple/Java Script
    Any insight is appreciated!
    snegig

    Hi,
    John Hawkinson thank you so much your suggestion.
    I am new  this type of discusion (on this page). So i think anybody could not replay my answer. So i repost my question.
    I want insert tags in my Indesign CS4 files. Is this posible when i select my powermath equaiton then run script. Script add tags automatically before/after my equation. Please ignore IDML word.
    Yes i an comfortable with XSLT presently i working with Pearson ETMV2.
    I have one more question when i past my snapshot its appear properly but when i agin see my commant then my snapshot disappear (see small blue rectangle).
    Thank you John again i am new in this industry please guide.
    snegig

  • Add xml Tags by Apple/Java script

    Hi,
    All, I'm new to Indesign Scripting, and I'm hoping someone can help me with the following (add xml) problem.
    Can anyone write/suggest me how i can add xml tags. By Apple/Java Script
    My Probleam =>
    [&x+2, y+3&]
    Solution => (But its manual)
    <inlineequation><inlinemediaobject><textobject role="xpressmath">[&x+2, y+3&]</textobject></inlinemediaobject></inlineequation>
    I want add xml tags on my powermath equaiton. Its ETMV2 xml tags.
      Any insight is appreciated!
    Thank you so much
    snegig

    Hi John,
    (1) Without xml tags my InDesign file
    (2) After add tags my file (its manually)
    Is this any script when i select my power math equation data then add xml tags automatically
    Thank's any suggestion

  • Scripting with bridge

    Hello, i am pretty new to this so i am still figuring out how this scripting works
    In general what i want to do is generate a jpg image from an symbols.ai library file and because bridge shows this library in some way, i want to use a script against bridge.
    So now i have found a script from the sdk - SnpSaveAsJPEG and i am trying to understand what is happening because i have no experience with javascript.
    maybe some advice on some good literature is also good?
    can someone please help me with the following questions:
    at the bottom we have "new SnpSaveAsJPEG().run();" that makes the program run
    why is it executing the (at the top) "function SnpSaveAsJPEG()" even if you change that functions name?
    why do we set requiredContext?
    is the "$.level" always needed and why do we set it?
    next we have the method "SnpSaveAsJPEG.prototype.run = function()"
    where does "prototype" come from?
    Why is it executing this function as there is nowhere a reference to this?
    thanks

    Hello Muppet Mark.
    We are using CS 5.5
    Here is the sample code, as found in the sdk(but some little test modifications by me), copyright adobe
    The script is working correct, but i am trying to understand how it does what it does.
    #target bridge
    #targetengine "MainEngine"
    function SnpSaveAsJPEG()
        //The context in which this snippet can run.
         //type String
        this.requiredContext = "\tExecute against Bridge.\nBridge must be running and \n"
            + "at least one thumbnail selected that is not a folder.";
        $.level = 1; // Debugging level
    Functional part of this snippet. 
    Gets a File object for each selected thumbnail, and uses it to
    create a BitmapData object. Uses the BitmapData object to export
    to the JPEG format.
         @return True if the snippet ran as expected, false if no files are selected in Bridge
         @type Boolean
    SnpSaveAsJPEG.prototype.run = function()
        var retval = true;
        if(!this.canRun()) {
            retval = false;   
            return retval;
        // Get the selected Thumbnail objects - only accept these file types
        var thumbs = app.document.getSelection("ai");
        // Go through each of the selected thumbnails
        if(thumbs.length != 0)
            for(var i = 0;i < thumbs.length;i++)
                // get associated File object, ignore folders
                if(thumbs[i].spec instanceof File)
                    var thumb = thumbs[i];
                    // create a BitmapData object
                    var bm = new BitmapData(thumbs[i].spec);
                    if(bm instanceof BitmapData)
                        // create the path and file name
                        var exportFilePath = thumbs[i].parent.spec + "/SnpSaveAsJPEG_" + thumbs[i].name + ".jpg";
                        // create the new file and export the data
                        bm.exportTo(new File(exportFilePath));
        else
            retval = false;
        return retval;
    Determines whether snippet can be run given current context.  The snippet will
    fail if these preconditions are not met:
    <ul>
    <li> Must in Bridge
    <li> At least one file must be selected in Bridge
    </ul>
    @return True if this snippet can run, false otherwise
    @type boolean
    SnpSaveAsJPEG.prototype.canRun = function()
        // must run in Bridge
        // must be at least one selection.
        if((BridgeTalk.appName == "bridge") && (app.document.selectionLength > 0))
            return true;
        // Fail if these preconditions are not met. 
        $.writeln("ERROR:: Cannot run SnpSaveAsJPEG");
        $.writeln(this.requiredContext);
        return false;
    "main program": construct an anonymous instance and run it
      as long as we are not unit-testing this snippet.
    //if(typeof(SnpSaveAsJPEG_unitTest)  == "undefined") {
    //    new SnpSaveAsJPEG().run();
    new SnpSaveAsJPEG().run();

  • Run Photoshop script from Bridge

    Hi
    I have a modified version of Image Processor script in photoshop scripting folder (it saves RAW files as smart objects) and would like to run it from Bridge (apply to selected images). Right now I can run script from File > Scripts Photoshop menu but not in Bride Tools > Photoshop
    Thank you
    The help will be appreciated

    Its Not Adobe Code and its not shipped with Photoshop.  Photoshop versions also has bugs in ScriptUI which is used by scripts with a dialog.  Image Processor Pro 2.3.1 has some bugs. Some files formats its saves may have problems.
    Russell Brown works for Adobe but he has been pulled away from Photoshop.  Xbytor is the programmer that wrote Image Processor Pro he does not work for Adobe and he is feed up with Adobe for not fixing bugs in Photoshop scripting.  He stated he will support Image Processor Pro for some time.
    Russell web site has this. The Open Source code is now available for many of my script and panels
    Because of new projects and a changing demand for my time, it will be necessary for me to move on to new projects at Adobe. For this reason I will no longer be able to support, or update many of my scripts and panels. Never fear! – I am releasing the source code for many of my programs and if you are a programmer then you can use this code to modify and change my scripts to meet your needs. If you are not a programmer then I recommend working with anyone on the list of programmers that I have supplied below. However! Let me make it clear that his code is not to be sold. This is an open and free source to be used for the good of humankind and Adobe Photoshop users around the world
    ===========================
    I do not have a Mac or a Windows 8 machine to test on. On my Windows 7 PC Image Processor Pro 2.3.1 and newer versions run on CS6, CC and CC 2014..  X is still working on it

  • My safari screen is greyed out, I checked and found a response to this question.  I went to settings and cleared history, cookies, and cache, java script is on and I restarted, screen is still grey, cant touch it to do a thing.  Help!

    my safari screen is greyed out, I checked and found a response to this question.  I went to settings and cleared history, cookies, and cache, java script is on and I restarted, screen is still grey, cant touch it to do a thing.  Help!

    That is usually the fix but try this now.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple logo appears - ignore the red slider - let go of the buttons. See if that helps.
    You can also try this - quit Safari. From the home screen - Double tap the home button and your recent apps appear the bottom. Tap and hold down on the Safari icon until it wiggles. Tap the minus sign in the upper left corner to close the app. Tap the home button twice. Restart the iPad.
    Message was edited by: Demo

  • New Scripts for Bridge posted

    From John Nack's blog: http://blogs.adobe.com/jnack/
    New scripts extend Bridge CS4
    Ever wanted to convert just about any file to JPEG from Bridge, or to attach browsed files to email? Photographer/scripter/Bridge quality engineer David Franzen has your back, having posted a set of great scripts to the Adobe Exchange. He writes:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=productHome&exc=20

    Please post the solution how did you solve and what was the exact issue so that if anyone faces the same problem in future they can easily find answer from your post.
    Regards,
    Lalit Mohan Gupta.

  • Sync two iPhones with two different iTunes and iPhoto libraries script

    I'm sure this is answered elsewhere, but I was not able to find a solution to this easily. My wife "L" and I, "J" have iPhones, also different tastes in music, and wanted a way to not have all of our own pictures filling up our default iPhoto library. So we first set up two different iTunes and iPhoto libraries. Two diffrent contact libraries would be nice, but contact groups worked okay for this. But then everytime we would sync, it meant opening both iTunes and iPhoto while holding the option key then selecting which library depending on which phone was going to be pluged in. Believe me, you only need to have "Automatically sync" turned on and plug in the wrong iPhone before all sorts of problems arise!
    Let me state, I am not fluent with AppleScript, but rather I found bits and pieces close to what I wanted here and there on the www and kept playing until it worked. This works flawlessly everytime on our MacBook, and, unless your initials are J & L and there are only two of you, you will have to change some letters here and there throughout the script to make it work for your situation. Think of this as a rough draft and start to play. I'm sure there is a simpler way to write this script, so to all the real authors, please re-write!
    So we have two libraries for iTunes and iPhoto. One set of libraries named J's iTunes library and J's iPhoto library, and another two named L's iTunes library and L's iPhoto library. I wanted to create one app that would close the current libraries, and open the correct ones (or return to our default libraries) depending on what iPhone was to be synced. Using AppleScript Editor and saving the script as an application, this is what I came up with:
    display dialog "Do you want to continue to set iTunes and iPhoto libraries?" buttons {"Cancel", "Continue"} default button "Continue"
    tell application "iPhoto" to quit
    tell application "iTunes" to quit
    set Y to the button returned of (display dialog "Which libraries do you want to use?" buttons {"L's", "Reset to Defaults", "J's"} default button "Reset to Defaults")
    if Y = "Reset to Defaults" then set Y to "i"
    if Y = "L's" then set Y to "l"
    if Y = "J's" then set Y to "j"
    tell application "System Events"
      key down option
      delay 1
              tell application "iPhoto"
      activate
      delay 3
                        tell application "System Events"
      key up option
                        end tell
              end tell
    end tell
    tell application "System Events"
      keystroke Y
              tell application "System Events"
      key code 36
              end tell
    end tell
    delay 2
    tell application "System Events"
      key down option
              tell application "iTunes"
      activate
                        tell application "System Events"
      key up option
      keystroke return
                        end tell
              end tell
    end tell
    tell application "System Events"
      keystroke Y
    end tell
    tell application "System Events"
      key code 36
    end tell
    if Y = "i" then tell application "iTunes" to quit
    if Y = "i" then tell application "iPhoto" to quit

    Hi, thanks for your answer.
    Unfortunately this does not work because iTunes still keeps one account with the store active regardless which library I open. So when I switch the account in the store it will be switched for both libraries. That means that I can not separate the iPhone applications and all the other specific sync parameters.
    I thought about using my wife's account on the Mac and pointing iTunes to the new library - the problem here is that then the iPhoto library is not accessible any more......
    I can't really believe that there is no solution from Apple - I mean there must be more couples and families out there with 2 and more iPhones syncing with one iTunes / iPhoto etc libraries.
    Any other ideas? Thanks in advance!

Maybe you are looking for