Applescript Question - Probably Basic

Discussion in 'Mac Programming' started by HuggerMugger, Nov 5, 2009.

  1. HuggerMugger macrumors newbie

    Nov 5, 2009
    Hey guys,

    I was looking for some help on a simple AppleScript.

    I've used Automater to create a simple application to make an application (iBank) sync the devices. I need an Applescript that I can open at startup and will run the (the one I created) every 30 minutes.

    Help :)
  2. gocardsfan1 macrumors member

    May 19, 2008
    Wouldn't this work?

    tell ""
    delay 60 * 30
    end tell
    end repeat
  3. HuggerMugger thread starter macrumors newbie

    Nov 5, 2009
    It isn't working;

    I get this error;

    Attached Files:

  4. gocardsfan1 macrumors member

    May 19, 2008
    The automator application can probably be avoided, with the whole code being in applescript. If you tell me what the consists of (a screenshot of the automator window would be great) then I could put that in the applescript code itself and then it should work. I think the problem right now is that does not act like a true application, so applescript cannot activate it.
  5. mysterytramp macrumors 65816


    Jul 17, 2008
    If iBank doesn't understand "activate," there's an extremely good chance that it's not "scriptable," which just means the developer hasn't included code to manipulate iBank directly.

    There are workarounds.

    Will iBank sync once it's run? Something like this would do the trick, then:

    activate application "iBank"

    If you need to then have it invoke a specific menu command, you can use System Events. Something like this might work:

    tell application "System Events" to tell process "iBank" to keystroke "R" with command down

    or something similar. You need to have the software to write the script for it exactly. If you can describe what it needs to do, we should be able to kludge together something for you.

  6. HuggerMugger thread starter macrumors newbie

    Nov 5, 2009
    This is what I'm using;

    The ibanksynclauncher is what starts the app and then repeats every 30 minutes;

    the ibanksync is the app that I created using "watch me do" which

    clicks on ibank on the dock
    clicks file
    then sync devices
    then window
    then minimize

    I've gotten it working working fine, but would love to have a single app/script to run.

    Any ideas?

    Attached Files:

Share This Page