Applescript keystroke problem

I'm coding in applescript and whenever I run a keystroke command it types it into the script window instead of the application i activate.
tell application "--app--"
     activate
end tell
tell application "System Events"
     keystroke "--whatever text--"
end tell
whenever i do anything if this sort, it opens the application but then reverts to the applescript editor and types the text in that window instead of the activated application.
If the app is already open it works fine.

nevermind
nooby problem
figured it out

Similar Messages

  • AppleScript Studio Problems...

    I have documented some AppleScript Studio problems that I have encountered, along with some screenshots.
    Hopefully somebody might have a clue what is causing the problems.
    http://www.mac-specialist.com/r/as_studio.html
    I would be grateful for any insights,
    Bill Hernandez
    Plano, Texas

    Steve,
    This is the message I sent earlier with new findings:
    After I deleted "Smart Crash Reports.bundle" in /Library/InputManagers/, I rebooted, went to AS Studio to see if there were any problems, and guess what ?
    The Debugger started working. It's been broken as long as I can remember. Every time I've wanted to learn how to work with AS Studio since it came out, the Debugger has never worked, and I always ended up moving on to something else.
    This is awesome...
    Bill Hernandez
    Plano, Texas
    <hr>
    On Dec 24, 2006, at 5:27 PM, Steve Hayman wrote:
    Hi Bill.
    Make sure you're building a debug version of the project in order for breakpoints to work. In Xcode you set this with Project > Set Active Build Configuration > Debug .
    This was the very first thing I checked the other day when I started trying to learn AS Studio in earnest.
    Also I don't think those messages you are seeing about Smart Crash REports.bundle actually indicate that the app has crashed; it's just reporting that it can't load this bundle for some reason, and then proceeding anyway - I don't see anything that indicates your app has crashed.
    I read a long article at : http://daringfireball.net/2006/01/smartcrashreports
    and came away without a real solution. It was close to 3 am so I was barely awake, but came away confused as to what the solution was. I had used Unsanity's products particularly the menu product, but they caused too many problems with Quickeys and 4th Dimension. After talking to the people that write Quickeys, I disabled all their stuff and everything started working fine with Quickeys and 4D. They are far more important for me, that the Unsanity stuff.
    I agree with the Daring Fireball article, and am annoyed that Unsanity patches the OS without asking for permission. I won't buy their products any more.
    That bundle is something that certain third-party applications install which attempts to email crash reports for their apps back to their authors, rather than to Apple. I don't know what app you might have installed that included this but it would probably be safe to remove the bundle. (Double clicking on it wouldn't do anything; it's not intended to be double clicked; it just sits there and waits to be loaded.)
    After I wrote the original message I realized that it wasn't double clickable, but by then it was too late. I think it was probably Unsanity's APE, or FruitMenu.If you look at /Library/InputManagers/ there's an "info" file, and a "Smart Crash Reports.bundle". I just deleted both of them, if it causes a problem I'll copy them from another machine that doesn't have it. I'm not sure but I believe they patch the original one from Apple. I'm not sure if that is correct?
    <hr>
    On 22-Dec-06, at 8:54 PM, Bill Hernandez wrote:
    Wizards,
    I have documented some AppleScript Studio problems that I have encountered, along with some screenshots.
    Hopefully somebody might have a clue what is causing the problems.
    http://www.mac-specialist.com/r/as_studio.html
    I would be grateful for any insights,
    Bill Hernandez
    Plano, Texas

  • Applescript keystroke

    I created a applescript to automatic fill the login information for a webpage. I made it four months ago and it works fine untill a month aprox. The problem is very wierd, It fills the first field, the username, using the command "keystroke" and it does but not in the right order.
    My username is "rsolanilla" and it types "srolanilla" most of the times and other combinations much less often. It types ok some times too, but is quite random.
    I use it into a automator application, but I tested from applescript and automator and the results are the same.
    This is the part of code I talked about:
    tell application "Safari"
        activate
        set thisDocument to make new document at end of documents
        do JavaScript "window.open('" & mainURL & "')" in thisDocument
        tell application "System Events"
            tell application process "Safari"
                delay 3
                -- keystroke (ASCII character 9) — tab character
               keystroke mainLogin
                --delay 1
                keystroke (ASCII character 9) -- tab character
                --delay 1
                keystroke mainPword
                keystroke (ASCII character 13) -- this equals return
            end tell
        end tell
    end tell

    Repost to
    https://discussions.apple.com/community/mac_os/mac_os_x_technologies#/?tagSet=10 44

  • Create Mail account by AppleScript - Authentication problem

    Hi everyone,
    For two day, I try to create a new email account in Apple Mail by using Apple Script. Actually, my script works fine except for the declaration of SMTP informations.
    To my side, my SMTP server requires *authentication by password*.
    ----- CODE -----
    tell application "Mail"
    (* First, the IMAP account. Works flawlessly *)
    try
    set newacct to make new imap account with properties {name:"MailboxName", user name:"[email protected]", password:"", uses ssl:true, server name:"xxx.mycompany.com", port:xxx, full name:"<Sender User Name>", email addresses:{"[email protected]"}}
    (* Next, we create a new SMTP server in the list. *)
    set addsmtp to make new smtp server with properties {server name:"xxx.mycompany.com", user name:"[email protected]", uses ssl:true, authentication:password, password:""}
    (* End then, we attach the SMTP server to the new IMAP account. *)
    set smtp server of newacct to addsmtp
    end try
    end tell
    ----- END CODE -----
    When I launch this script, Mail starts, the IMAP account is created just like the SMTP server. BUT when I check it (MailboxName > right click > Modify "MailboxName" > Sending server (SMTP) > modify the SMTP server list > advanced) there is *<Do not localize>* message instead of the SMTP scrolling list.
    When I restart AppleMail, there is the list but only with "xxx.mycompany.com" instead of "xxx.mycompany.com:[email protected]".
    I check the advanced properties of the new SMTP server and Authentication parameter is set to "None".
    *I've tried "authentication:md5", it works !*
    Does anyone have an idea ?
    If you need further information, please let me know.
    Regards,
    Florent.
    ps : I haven't found AppleScript forum. Sorry if this post is not in the right place

    Hello Aric Friesen, hello ssh2,
    first of all, thank you for replying on this thread
    _I'll start with SSH2 :_
    I've tried to change the property of IMAP account directly (while the creation) AND overloading it after declaration and it still not works.
    Maybe this image is friendlier than text ^^
    Of course, I also tried to put double-quote on ‘password‘, nothing changes.
    Same if I remove ‘authentication:""‘ from SMTP creation and declare it after.
    As you probably get, my English is not perfect so I may have misunderstood your post If you can post the code of your solution, that could be clearer for me.
    _Now *Aric Friesen* :_
    Indeed Mr Marshall seems to be an implicated and professional person. I haven't reply to his last mail because I was a bit upset. I'm very sorry about that, I apologize, sincerely.
    In his last mail, he indicate me the process to sign up ADC for free and then the authentication web page worked. There is no "problem" anymore about that (well, there was never a problem in fact... shame on me !).
    I'm going to wait for ssh2 reply before getting in bug reporting (and, at same time, thank Darin for his precious help !).
    regards
    Florent.
    ps : Don't paid attention to "<SMTP Server Address>" in IMAP account creation, on the pic. It's a copy/paste mistake.

  • Applescript relink problem with indesign

    Hi
    I have a problem with my applescript code on indesign.
    The object relink function doesn't work ...
    Here is my code :
    tell application "Adobe InDesign CS4"
    if document 1 exists then
    tell document 1
    set chem to "TRAFIC:999:999998:Bonzai.gif"
    set mylink to name of link 1 as Unicode text
    relink link mylink to chem
    update mylink
    display dialog "ok"
    end tell
    end if
    end tell
    This error appears on the relink line : +Link "Bonzai.gif" of document 1 doesn't understand the relink message+
    (end of the error message is a translation of french to english)
    Any idea ?
    Regards

    Hello
    Try something like this. Not tested.
    tell application "Adobe InDesign CS4"
    if document 1 exists then
    tell document 1
    set chem to "TRAFIC:999:999998:Bonzai.gif"
    set mylink to link 1
    relink mylink to chem
    update mylink
    end tell
    end if
    end tell
    or
    tell application "Adobe InDesign CS4"
    if document 1 exists then
    tell document 1
    set chem to "TRAFIC:999:999998:Bonzai.gif"
    tell link 1
    relink to chem
    update
    end tell
    end tell
    end if
    end tell
    Good luck,
    H

  • How do I use AppleScript keystroke command as a speakable item?

    I am attempting to do what I thought was a rather simple task, but have not had success.
    I would like to use the following script as a voice command to speak selected text in a file, opened for example by Preview, when the key is pressed.
    tell application "System Events" to keystroke "." using control down
    I have placed the script application in the System Preferences, Speech, Speakable Items Folder.  The item is being recognized; however, it appears that it is not functioning in the correct window context.  I would like this to work regardless of the application text (hence the Text to Speech option).  How do I set this up before the keystroke command in the script?
    As an aside, is there a way to convert a script file to a SpeakableItems.app document file?

    I am not sure if this is what you are looking for.
    But have you saved the below workflow as a Service and use a keyboad shortcut?
    I have this as a Service and my keyboard short cut is Command-Shift T.
    Once I select a paragraph in Preview and press the short cut it speaks the text for me.
    Maybe you already thought of this. But here you go.

  • KeyStroke Problem (except ENTER) in Textfield

    I like to activate and track within KeyLisener all keys like...Esc key, Shift-Tab key or any other key while in a Text Field .
    I have tried a lot... but failed.
    I used this code...
    txtBillNo.addKeyListener(new java.awt.event.KeyAdapter()
    public void keyPressed(KeyEvent e)
    if ( ( (e.getModifiers() == KeyEvent.SHIFT_MASK) &&
    (e.getKeyCode() == KeyEvent.VK_TAB))
    ||
    ( (e.getKeyCode() == KeyEvent.VK_ENTER)
    ||
    (e.getKeyCode() == KeyEvent.VK_TAB)))
    System.out.println("xxxxxxxxxxxxx ");

    Hi. Try this code:
    The problem is the focusmanager is handling the tab event so it never gets to the listener. If you disable the manager, then the key listener can get a crack at the event.
         public static void main(String[] args) {
              JTextField txtBillNo = new JTextField     ("adfasdfasf");
              txtBillNo.setFocusTraversalKeysEnabled(false);
              txtBillNo.addKeyListener(new java.awt.event.KeyAdapter() {
                   public void keyPressed(KeyEvent e) {
                        if ((((e.getModifiersEx() & KeyEvent.SHIFT_DOWN_MASK)
                             == KeyEvent.SHIFT_DOWN_MASK)
                             && (e.getKeyCode() == KeyEvent.VK_TAB))
                             || ((e.getKeyCode() == KeyEvent.VK_ENTER)
                                  || (e.getKeyCode() == KeyEvent.VK_TAB))) {
                             System.out.println("xxxxxxxxxxxxx ");
              JFrame frame = new JFrame();
              frame.getContentPane().add(txtBillNo);
              frame.pack();
              frame.show();
         }

  • KeyStroke Problem...

    Hi
    I added KeyStroke to mainPanel to look for Enter key pressed using InputMap and ActionMap. The requirement is whereever the focus is pressing enter next button should be activated.
    It works okay when no dialog is used inside the panel. But when a JOptionPane or JDialog is created hitting enter on dialog buttons, the keystroke is also passed to the panel. Which is not allowing the dialog to close. Do any one have solution for this?
    Im aware of the optional way to add KeyListener to all the components in the mainPanel which i dont want to do...
    I have attached the sample code....
    public class KeyStroke extends JFrame implements ActionListener {
         private JButton next;
         public KeyStroke(){
              JPanel mainPanel=new JPanel();
              JTextField textarea=new JTextField(15);
              next=new JButton("Next");
              next.addActionListener(this);
    mainPanel.add(textarea);
              mainPanel.add(next);
              Action pressedEnterKeyAction = new AbstractAction() {
                   public void actionPerformed(ActionEvent arg0) {
         next.doClick();
    mainPanel.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT ).
                   put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0,true),"pressedEnter");
    mainPanel.getActionMap().put("pressedEnter",     pressedEnterKeyAction);
              this.getContentPane().add(mainPanel);
         public void actionPerformed(ActionEvent e) {
              JOptionPane.showMessageDialog(this,     "Button Clicked", "dialog",
                                  JOptionPane.INFORMATION_MESSAGE);
    *************************************************

    1) Use the "code" tags when posting code so it retains its original formatting.
    2) Use a better name for your test class. KeyStroke is a class in the JDK
    3) The code you posted isn't compilable or executable.

  • Applescript error problems

    I'm not too familiar with applescript. I've never used it much to create my own scripts (other than an automated script to log onto my server when I boot). Suddenly many of the small, free programs I use give applescript errors when starting up and then shut down (programs like cacheoutX, fetchart, etc). My wife's user account on the same computer works fine (no applescript errors when using these same programs). How do I fix/reinstall applescript? If no one knows how, is there an easy way to reinstall my own user account (I'm the admin and original user account)? I'm getting sick of this and it's one of the first big headaches I've had with OS X that I haven't been able to find an easy fix for. Please help! and thanks so much...
    -Dan
    p.s. The appelscript error is "NSRecieverEvaluationScriptError: 4 (1)"

    Dan,
    Brute force is not the solution.
    Let's try the following:
    1. Remove the applescripts that don't work: Script-scroll-thingy > Open Scripts Folder > User Scripts folder > delete non-functional scripts from it.
    Check for duplicates of the non-functioning scripts in the Library Scripts folder.
    Now delete the applescript .plist.
    Delete trash.
    Restart to rebuild the plist.
    Run an Applescript to test. Does it work?
    Yes: Add back your Applescripts one at a time and test them individually.
    No: Use Cocktail or Onyx to clean your caches and try again.
    -Wayne
    PS When this is sorted, please make yourself an ordinary user. First, create an admin profile just for updates and installation. You should do this because it's far easier to bork your Mac from an admin profile than from a user profile. Unlike the convicted monopoly OS, OS X will nicely ask you for the admin user/password when it wants to do things to your system that are inherently dangerous. If you're cautious enough, you should never have to log into the admin profile. Just remember to give it a non-"admin" user name and use a strong password.

  • Applescript Studio Problems, Web Browser

    Hey,
    I'm attempting an application using Applescript in Xcode because I just can't get my head around objective-c.
    So far I have a GUI with a button and a webview both linked to this code:
    on clicked (theObject)
    if the name of theObject is "loadgoogle" then
    tell mainwindow
    open location "http://google.com"
    end tell
    end if
    end clicked
    It compiles fine but when I click the button nothing happens.
    Could someone please enlighten me?
    Kind Regards
    Message was edited by: maximart4u

    Are you really using *AppleScript Studio*, or are you just dropping the old handlers into a new AppleScriptObjC project?
    If you are creating a new project, note that AppleScript Studio is deprecated in Snow Leopard. You can still edit existing AppleScript Studio projects (which explains why it compiles), but your on clicked handler does not meet the new naming protocol used in AppleScriptObjC and Interface Builder.
    See the AppleScriptObjC Release Notes - it has information about enabling the AppleScript Studio palette in Interface Builder (the AppleScript Studio project templates have been removed, though). There is also a AppleScriptObjC in Xcode tutorial at MacScripter that should get you started.

  • Keystrokes problem

    Hi,
    I think this should be fairly standard but we'll see... I
    have a very simple flash file that plays a sound file when you
    click on it and it is inserted into an HTML page.
    I have two problems:
    How can I allow a user to use the tab key to navigate to the
    flash file?
    Once there how can they use the Enter key to activate that
    sound file (i.e. do what the mouseclick does?)
    My approach would be to put the flash object into an <a
    href="#"> tag so that a user can tab to it (for accessibility
    purposes) but once there how do I detect the Enter key stroke and
    assign it to an action?
    Hope you can help.
    Cheers,
    Simon

    Hi,
    You can refer to the link below for the syntax of Psr.exe
    How to Use Windows 7 “Problem Steps Recorder” from command line?:
    http://ctrlf5.net/?p=176
    Another example should be also helpful:
    http://www.ditii.com/2009/02/26/windows-7-problem-steps-recorder-command-line-configuration-deciphered/
    Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Roger Lu
    TechNet Community Support

  • In the new firefox (34) i started having a problem entering anything in the search bar or address bar. Any key stroke i make is changed to a random character

    Keystrokes do not reflect what I am trying to type in Firefox 34. This just started today. I had to use IE Explorer which I hate to send this to you. I reset firefox twice but no help. Uninstalled it and reinstalled an older version and all was well. Reinstalled the latest version and I am back to the keystroke problem again. HELP !!!!!

    Application Basics
    Name: Firefox
    Version: 33.1.1
    User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
    Multiprocess Windows: 0/1
    Crash Reports for the Last 3 Days
    All Crash Reports (including 8 pending crashes in the given time range)
    Extensions
    Name: Dashlane
    Version: 3.0.7.74559
    Enabled: false
    ID: {442718d9-475e-452a-b3e1-fb1ee16b8e9f}
    Name: McAfee Security Scan Plus
    Version: 1.0
    Enabled: false
    ID: {e4f94d1e-2f53-401e-8885-681602c0ddd8}
    Name: McAfee SiteAdvisor
    Version: 3.7.1
    Enabled: false
    ID: {4ED1F68A-5463-4931-9384-8FFF5ED91D92}
    Name: Online Data Protection Suite
    Version: 5.5.0.6885
    Enabled: false
    ID: [email protected]
    Name: Skype Click to Call
    Version: 7.3.16540.9015
    Enabled: false
    ID: {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A}
    Graphics
    Adapter Description: Intel(R) HD Graphics 4000
    Adapter Description (GPU #2): NVIDIA GeForce GT 650M
    Adapter Drivers: igdumd64 igd10umd64 igd10umd64 igdumd32 igd10umd32 igd10umd32
    Adapter Drivers (GPU #2): nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
    Adapter RAM: Unknown
    Adapter RAM (GPU #2): 2048
    Device ID: 0x0166
    Device ID (GPU #2): 0x0fd1
    Direct2D Enabled: true
    DirectWrite Enabled: true (6.2.9200.16571)
    Driver Date: 3-26-2012
    Driver Date (GPU #2): 10-2-2012
    Driver Version: 8.15.10.2712
    Driver Version (GPU #2): 9.18.13.697
    GPU #2 Active: false
    GPU Accelerated Windows: 1/1 Direct3D 11 (OMTC)
    Vendor ID: 0x8086
    Vendor ID (GPU #2): 0x10de
    WebGL Renderer: Google Inc. -- ANGLE (Intel(R) HD Graphics 4000 Direct3D9Ex vs_3_0 ps_3_0)
    windowLayerManagerRemote: true
    AzureCanvasBackend: direct2d
    AzureContentBackend: direct2d
    AzureFallbackCanvasBackend: cairo
    AzureSkiaAccelerated: 0
    Important Modified Preferences
    browser.cache.disk.capacity: 358400
    browser.cache.disk.smart_size.first_run: false
    browser.cache.frecency_experiment: 1
    browser.places.smartBookmarksVersion: 7
    browser.sessionstore.upgradeBackup.latestBuildID: 20141113143407
    browser.startup.homepage_override.buildID: 20141113143407
    browser.startup.homepage_override.mstone: 33.1.1
    extensions.lastAppVersion: 33.1.1
    gfx.direct3d.last_used_feature_level_idx: 0
    media.gmp-gmpopenh264.lastUpdate: 1418313769
    media.gmp-gmpopenh264.version: 1.1
    media.gmp-manager.lastCheck: 1418313768
    network.cookie.prefsMigrated: true
    places.history.expiration.transient_current_max_pages: 104858
    plugin.disable_full_page_plugin_for_types: application/pdf
    plugin.importedState: true
    privacy.sanitize.migrateFx3Prefs: true
    Important Locked Preferences
    JavaScript
    Incremental GC: true
    Accessibility
    Activated: false
    Prevent Accessibility: 0
    Library Versions
    NSPR
    Expected minimum version: 4.10.7
    Version in use: 4.10.7
    NSS
    Expected minimum version: 3.17.2 Basic ECC
    Version in use: 3.17.2 Basic ECC
    NSSSMIME
    Expected minimum version: 3.17.2 Basic ECC
    Version in use: 3.17.2 Basic ECC
    NSSSSL
    Expected minimum version: 3.17.2 Basic ECC
    Version in use: 3.17.2 Basic ECC
    NSSUTIL
    Expected minimum version: 3.17.2
    Version in use: 3.17.2
    Experimental Features
    ---------------------

  • Initial keystroke not registering - Deja Vu anyone?

    I'm sure a lot of people out there are quite familiar with the *ELP keystroke problem*, as it was quite a hot topic back in the 10.5.1 / 10.5.2 days. Well, it appears that I've got it again after updating to 10.5.6.
    Other than this, which has been going on since installing the 10.5.6 combo update, I've had none of the other 10.5.6 post-update issues. Installing the combo update went smoothly. I had this missing keystroke issue during the first round, and I can't remember if it was 10.5.2 or 10.5.3 that fixed it.
    Anyone else having this problem again? I know that there are much bigger issues following 10.5.6, but this is still quite annoying. All software updates are installed, and I have the latest firmware for my Late-2007 MBP.

    I am experiencing the problem, however only with a certain hardware combination...
    When I use a particular Apple Pro keyboard with my PPC running Tiger everything is fine. Plug that keyboard into a system running Leopard (Intel) and I gives me the "elp" problem. If I use a different Apple Pro keyboard with the Leopard machines everything is fine. (I've tried 2 Leopard machines BTW).
    For me this doesn't really shed anymore light on what the problem but maybe others out there have a similar experience.

  • AppleScript failing on getting mailbox

    I'm working on an Automator action to find all messages in a particular Mail folder (named ". Do"), create Reminders for each, and then move the messages from the ". Do" folder to a separate folder (named ". Do Later")
    The first portion is working fine. That is, using Automator, I can find the relevant messages by using the Get Specified Mail Items action linked to a Filter Mail Messages action. The Get Specified Mail Items looks at <mailbox ". Do" of account "Exchange"> . These two actions work fine. I see all relevant messages in the Automator results window for my Filter Mail Messages action.
    I then launch an applescript to process the found messages, move them to Reminders and then move the messages from the ". Do" folder to my suspense folder (". Do Later"). The first part of the script works fine. The messages are found and new Reminders are created with all of the meta data I've created. However, I can't get the last step to work to move the messages to a new folder.
    The script continues to abort with the error "Can't get mailbox ". Do Later" of account "Exchange". See below for the relevant portion of the script. I'm an AppleScript novice (clearly!). It seems i'm not forming the correct reference to the ". Do Later" folder. I can't figure out how to troubleshoot any further to either debug the script failure or to inspect the Mail folder structure to insure I'm usring the right reference.
    Any tips?  thanks -- jay
    # theMessage contains current message being processed
    # Move message out of . Do
                                  set theMoveToMailbox to ". Do Later"
                                  tell application "Mail"
                                            move the theMessage to mailbox theMoveToMailbox of account "Exchange"
                                  end tell
    Mountain Lion
    Message was edited by: jayelevy

    pjdube - thanks for the offer of assistance.
    I finally solved my problem. I did have an incorrect mailbox reference. FWIW, the corrected reference needed to be:
    set theMoveToMailbox "Inbox/. Do Later"
    Simple omission of "Inbox"!!
    I also stumbled my way through and got rid of the Automator dependency... now all applescript. Problems solved now and the script works like a charm!

  • AppleScript-Droplet: convert image to monochrome / grayscale / black&white

    Hello,
    i am used to applescript itself and now willing to write me a small droplet which converts dropped images (jpg & png) to grayscale images.
    right now i am wondering which might be the best application i could use for that ?
    First ideas was ImageMagick (somehow special ...macports) or Sips.
    Is there any chance that i can use a more usual application like Preview from applescript to do the convert task ?
    any ideas ?
    Best regards
    fidel

    Hi Piere,
    that looks great - i added the applescript/keystroke part for save & quit and the result is perfect for my needs.
    My mistake was to just check the offered options in automator - ignoring the keystroke possibilities.
    Thanks once again
    Best regards
    fidel
    code:
    on open droppedImages
    tell application "Preview"
    activate
    repeat with currentImage in droppedImages
    open currentImage
    tell application "System Events"
    keystroke "c" using {option down, command down}
    tell process "Preview"
    set value of value indicator 1 of slider 2 of window 1 to 0
    -- other image modifications are possible here
    end tell
    end tell
    end repeat
    tell application "System Events" to tell process "Preview" to click button 1 of window 1
    -- save
    tell application "System Events"
    keystroke "s" using command down
    end tell
    -- quit preview
    quit
    end tell
    end open

Maybe you are looking for

  • Data doesn't come up in SQL database

    Hi, I have been trying add data to my local .mdf database through C#. My code executes successfully but the data doesn't come up when I view the table data through Server Explorer. My database is not read-only and I have set it to never copy the data

  • How do I change to my new Apple ID on my iPhone 5s?

    Here is my issue. I have changed email accounts for a number of reasons. My Apple ID was an old gmail account that I no longer monitor, and it had an unprofessional username and got a lot of spam, so I didn't want to simply use forwarding. I changed

  • CS6 Master Collection is missing Premiere Pro?  Where is it?

    I purchased the CS6 Master Collection (for Windows) last semester partly because it had Premiere Pro.  Once I installed both discs, I have now realized that Premiere Pro is not on my computer.  I believe that is the only program that I am missing.  I

  • SSFCOMPOSER 189 "No table line started. Output to cell not possible" ...

    Hi Guru, when i run smartform in VF03 & press on Print preview button it doesnt show the output.Can anybody tell me the cause of this error? Thanks in advance

  • In which format FM takes date

    hi all, plz guide me that in which format date is taking in FM. Like in my function module date is datum type and FM is working properly. but when i add that FM in bsp its not working. i converted my date in datum type but still nut working. plz sugg