How to get script to bypass app message

I've got a script to automatically update a remote FileMaker database which I run using iCal.
The script works fine unless someone has the database open at which time Filemaker opens a message window asking to send a message to the guests (that have the database open) to close the file.
How can I get the script to select the "ask" button so that Filemaker will close the database and copy the file?
Is there some way I can use a "System Events" keystroke command to return the "ask" button?
Attached is the script.
Pedro
with timeout of 300 seconds
tell application "Finder"
say "The ePO database will now back itself up. The database will need to close itself for a few moments and then reopen."
set dd to display dialog "The ePO database will now back itself up. The database will need to close itself for a few moments and then reopen.
(Use a maximum of 24 characters)" buttons {"OK", "cancel"} default button "OK" giving up after 10
delay 2
set fileRef to "Photo [Work]:CPA Photo Order Database:CPA ePO forms.fp7"
set theFile to a reference to file "Photo [Work]:CPA Photo Order Database:CPA ePO forms.fp7"
end tell
tell application "FileMaker Pro"
try
close database "CPA FM Log"
end try
try
close database "CPA ePO forms"
end try
end tell
tell application "Finder"
activate
move fileRef to "Photo [Data]:CPA Photo Order Database:" with replacing
--move fileRef to "FREE SPACE:iView Catalog backup:" with replacing
end tell
tell application "Finder"
set fileRef to "Photo [Work]:CPA Photo Order Database:CPA FM Log.fp7"
set theFile to a reference to file "Photo [Work]:CPA Photo Order Database:CPA FM Log.fp7"
end tell
tell application "Finder"
move fileRef to "Photo [Data]:CPA Photo Order Database:" with replacing
end tell
tell application "FileMaker Pro"
activate
open "Photo [Work]:CPA Photo Order Database:CPA FM Log.fp7" for Accounts "Photo" with passwords "Photo"
open "Photo [Work]:CPA Photo Order Database:CPA ePO forms.fp7" for Accounts "Photo" with passwords "Photo"
end tell
end timeout
G5 Mac OS X (10.3.8)
G5   Mac OS X (10.3.8)  

Sorry I was not clear the first time.
That works fine as far as bypassing the message.
But what I really want the script to do is to have FileMaker send a message to users who are logged on asking them to close the database and then automatically disconnect users in 25 seconds.
This is something Filemaker does when you manually close the database when other users have it open, I just need to get the script to "push the right buttons" so to speak.
Pedro
G5 Mac OS X (10.3.8)

Similar Messages

  • How to get rid of the error message we could not complete your iTunes store request?

    How to get rid of the error message we could not complete your iTunes store request?
    having this problem when trying to authorise an newly downloaded app in iTunes

    Based on the numerous posts regarding iTunes and the App Store, there appears to be an issue at Apple's end. Although Apple has not provided any indication on the cloud status page.
    Do not change your settings.
    Edit

  • My iphone got stolen, and now i have a new one. I would like to know how to get back all my apps on my new iphone as it doesn't seem to be possible from itunes ... Thank you

    Good evening !
    Oh sorry I didn't get it was just a title ...
    So, as i said, my iphone got stolen like a month ago, and i purchased a new one.
    I downloaded other apps in this new iphone and i think i did an error by syncing it with itunes as it seems that it doesn't have all the other apps i downloaded on the other iphone.
    So I would like to know how to get back all my apps ?
    Thank you very much
    PS : it is the same account that I use.

    actually I found the solution :
    http://www.igeneration.fr/itunes/astuce-votre-historique-d-achats-itunes-12056
    it's in french, but the images and google translate will be enough
    hope that helps for the others having the same kinda problem

  • How to get resume event in app?

    How to get resume event in app?

    Hi,
    Have a look at this
    Windows Phone Application Lifecycle
    I think you are looking about Application_Activated which is explained in detail in the above article.
    Pradeep AJ

  • I just downloaded the new iOS 5.0 and did all of the backup prompted steps beforehand, but I can't figure out how to get all of my apps and music back on my iPhone. Where did they go and how can I put them back on my iPhone?

    I just downloaded the new iOS 5.0 and did all of the backup prompted steps beforehand, but I can't figure out how to get all of my apps and music back on my iPhone. Where did they go and how can I put them back on my iPhone?

    Hi, Abril_Perez17.
    This may be related to a new feature embedded in iOS7 that shows all purchased music by default.  Go to Settings > Music, then turn off Show All Music.  See if the issue ceases once the feature has been disabled.  This information is located on page 63 of the user guide below. 
    iPhone User Guide
    Regards,
    Jason H. 

  • How to get a list of Apps that can not be recovered?

    After restoring a backup (iCloud), about 5% of my 225 were not restored because they did not appear over the Apple Store. How to get a list of Apps that can not be recovered?

    You should be able to download any apps that are missing at no extra cost. Just go to the App Store and download them again.

  • Does any one know how to get my Genius Apple Apps screen to work? Genius is Blank

    Does any one know how to get my Genius Apple Apps screen to work? Genius is Blank now regardless of how I enter the option. My upgrades, purchased, featured and searches all work in Apple Apps app. I have checked my settings for a possible fix to no avail. Tried all hand motions to see if they would fix or help and of course they did not. My Genius worked with some real possible apps I might want, now - absolutely nothing. Any solution that is actually possible will be appreciated.

    You need to be quite a bit more specific.  What exactly is the Desktop manager doing or not doing?  You have a Pearl....what model?  Look in Options >About and tell us what model you have and what OS it's running.  Also, what version of Desktop Manager, OS on your PC, etc. 
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • Java - Axis2: How to get an error code / error message from the Javascript via SOAP

    Hi
    In our Java applicsation we call a Javascript in a Indesign CS Server using the following code:
    --- SNIP BEGIN ---
    // calls the remote service on the indesign server
    try {
    // create service
    ServiceStub oIndsgnSrvStub = new
    ServiceStub(sIndesignServer);
    // create service parameter
    ServiceStub.RunScriptParameters
    oIndsgnSrvRSParams = new ServiceStub.RunScriptParameters();
    // create arguments with source- and target-file for parameter
    ServiceStub.IDSPScriptArg[] oIndsgnSrvSArgs = new ServiceStub.IDSPScriptArg[2];
    oIndsgnSrvSArgs[0] = new
    ServiceStub.IDSPScriptArg();
    oIndsgnSrvSArgs[0].setName("xml-input");
    oIndsgnSrvSArgs[0].setValue(sSourceFile);
    oIndsgnSrvSArgs[1] = new
    ServiceStub.IDSPScriptArg();
    oIndsgnSrvSArgs[1].setName("output-file");
    oIndsgnSrvSArgs[1].setValue(sTargetFile);
    // define service parameter
    oIndsgnSrvRSParams.setScriptArgs(oIndsgnSrvSArgs);
    oIndsgnSrvRSParams.setScriptFile(sScriptFile);
    oIndsgnSrvRSParams.setScriptLanguage("javascript");
    oIndsgnSrvRSParams.setScriptText("");
    // create runscript
    ServiceStub.RunScript oIndsgnSrvRS = new ServiceStub.RunScript();
    // set parameter
    oIndsgnSrvRS.setRunScriptParameters(oIndsgnSrvRSParams);
    //$$$ there should be an answer returned by the InddSrvr
    // execute SOAP call
    ServiceStub.RunScriptResult oIndsgnSrvRes = oIndsgnSrvStub.RunScript(oIndsgnSrvRS);
    if(oIndsgnSrvRes.getErrorNumber() == 0) {
    oServerProdJob.setProdState(CBP_Constant.REMOTEPRODUCTIONSTATE_SUCCESS);
    bOK = true;
    } else {
    oServerProdJob.setProdState(CBP_Constant.REMOTEPRODUCTIONSTATE_FAILURE);
    bOK = false;
    //$$$ should be set, if there is something returned by inddsrvr
    //oServerProdJob.setErrorMsg(sErrorMsg);
    } catch(Exception e) {
    sError += e.getMessage() + "\n";
    bOK = false;
    --- SNIP END -----
    The problem is that we don't get the error code and/or the error message from the Javascript in oIndsgnSrvRes. The error code is always 0 if I set an Integer value as return in the Javascript. If I set a String, there is an Exception in the Java application.
    Here is the Java script we use:
    --- SNIP BEGIN ---
    main();
    main()
    var sError = "";
    var sXMLInput = "";
    var sLayoutPath = "";
    // get the SDKCodeSnippetRunner object
    var cbpAdapter = app.cbpCbpadapterObject
    if (cbpAdapter) {
    sXMLInput=app.scriptArgs.get("xml-input");
    sLayoutOutputFile=app.scriptArgs.get("output-file");
    sError = cbpAdapter.doProcess(sXMLInput, sLayoutOutputFile);
    return sError; // This give an Exception; if I return an Integer the ScriptResult is always 0
    --- SNIP END -----
    If I try this with the test application from Adobe I get the error code correctly. But in the Java application, using SOAP, I can't get the error code.
    What could be wrong?
    Any ideas?
    Thanks a lot for the support.
    Kind regards
    Hans

    user11340104 wrote:
    Hello -
    i am calling sqlplus from a bash shell script. If the sql statement generates an error, how can I return that error code (unsuccessful) back to the bash shell?
    Well, let google be your friend,
    http://www.google.co.in/search?rlz=1C1GGLS_enIN327IN327&sourceid=chrome&ie=UTF-8&q=sqlplus+error+codes
    There are many threads I guess talking about the same issue.
    HTH
    Aman....

  • How to get notifications from facebook app like wh...

    I am using nokia x2-00. It supports notifications. Now i am getting an alert whenever i get a msg in line messenger or whatsapp even i am offline. How to get the same from facebook mobile app..?

    See:
    iOS: Understanding Notifications
    Go to Settings>Mail>Fetch new data and make sure that Push is On and the Fetch is set to a time other than Manually. Not all Mail account support Push so yo have to have the iPod to periodically check the mail server for new messages.

  • How To Get Refund Non-functioning App

    The I Swipe Ruler is not accurate and does not repeat at all (that is everything a measuring device needs to do). Below is the response from the developer, but I don't know who to contact at Apple to get a refund to my account. It is only $0.99 but at this point it is the principle of the matter more than the money.
    There is a junk app out there sold by Apple that costs a buck but no way to get a refund that I know of. I tried the apple phone number who sent me to the itunes store where I got the apple phone number in the first place. When I go to itunes, click on all  of the support links all I get are circular links bringing me back to where I started. Can someone tell me how to get my $0.99 returned please?
    E-mail from developer...
    Hi, sorry to hear that.
    Instructions are in the app itself, I'm planning to upload a video demo for that when I'll have time.
    You are right that the app have a small inaccuracy, if you want more accurate one you can use my app I-ruler its free!
    Mostly it depends on your iDevice (on new iPhone it works best).
    If you really don't like this app please contact apple and say you download that app accidentally and you contact me for approval of a full refund.
    Again I'm really sorry for your bad experience.
    Have a good week,
    Idan.
    On 24 במרץ 2012, at 18:14, Yola <[email protected]> wrote:
    You received a Contact Us submission from Idan - iOS Development:
    Application Name
    I ruler swipe
    Application Satisfaction
    It's a disaster!
    Name
    Mark miller

    You can contact iTunes Store Customer Support by email via: http://www.apple.com/support/itunes/contact/
    They might be able to help.

  • How can I automatically open Mail.app message attachments after downloading

    The subject says it all, I think.
    My wish #1
    Automatically Opening Mail.app message attachments after downloading
    My Wish #2
    At least having the Finder automatically default to the folder I just downloaded to after completing the download.
    Is this an option in Leopard, at least?

    Very clever. But unfortunately that doesn't seem to work in Tiger.
    Then again, I stil presume that when you do that, a ile is still downloaded and appears somewhere on your hard drive. If you "save as" the file opened by preview, you probably still need to go back to the place where the file was saved and delete it.
    Then again again, if Preview is peeking into a Word or Excel attachment, it may not actually be "downloading it" first?? Strange. If it was a jpg file attachment, on the other hand, it seems more likely that some sort of file would be downloaded to the hard drive as a result of that drag and drop of the paper clip.
    I did find that drag and drop capability interesting, though. Even in Tiger.
    Oh well. I have to start looking at scripts.
    When I downloaded that Automator application that was supposed to "close all open applications", I was surprised that it didn't work. Says it works with TIger. ???
    http://www.apple.com/downloads/macosx/automator/
    Was I supposed to import it into Automator as an "action" and save it as an Automator application and then open Automator and click "run" for that action each time I wanted to use it? Seams a bit cumbersome.

  • How to get script fonts

    I need to publish  texts in handwriting script fonts. How to get them in PDF format?

    Hello,
    you could have a look there: Handwriting font creator
    What concerns fonts I would search https://www.google.de/search?q=pdf+handschriften&ie=utf-8&oe=utf-8&gws_rd=cr&ei=8Hj4VLjiAo nBOfjSgIgE#q=handwriting+fonts… use one of these fonts in Word and convert it into a pdf file.
    Hans-Günter

  • How to get rid of an app

    how do you you get rid of an app?

    Delete it.
    Click on it and hit the delete key on your keyboard.

  • HT1660 How to get rid of an app

    I have chosen an app to download into my Iphone5 and since yesterday it shows installing, I do not know how can I get rid of this app? When I press this app it starts shaking but there is no cross to choose to delet it. Please advise me how to delet this app. Thank you

    Restart the device to see if it will complete the install.

  • My i phone plays music but the apps don't make any noise. Anyone know how to get sound out of apps?

    Does anyone know how to get app games to make sound. The i pod works fine!

    You might have turned of the sound in settings under sounds drag the ringer option all the way. Hope this helps.

Maybe you are looking for

  • Product replication from R/3 to CRM

    Hi Experts, <u>Project:</u> I'm implementing a Sales and Marketing project and the scope involves Activity, Lead & Opportunity Management <u>Background:</u> I've successfully done all the configurations. I've also migrated all the Business Partners a

  • Is my installation of SQL Server Fail Over cluster correct?

    I made a 2 node SQL Server 2012 fail over cluster but having some problems during installation so I wanted to know if the steps below I performed are correct. Hardware Node1 192.168.1.10 Node2 192.168.1.11 Added following entries in DNS cluster.domai

  • Why iphones dont have clipboards and attachments in their email apps?

    Two things i dont like in iphones and ipads are that they dont auto fill or have clipboards as samsungs neither can one attach a photo or document via the email app! This seems rediculous for even the less famous and leas expensive smartphones can do

  • Can't read back saved raw PCM file

    I used Audition 1.5 to do a 48kHz 32bit 2 channel recording and then I saved the file as raw PCM and now I can't read it back into Audition. When I enter the values it was recorded with I get an empty recording (but the right length of it). Anyone ha

  • My subscription should be active begining today bu...

    My subscription should be active begining today 04/07 but i have 0 min listed The money were taken from my account but there are 0 min listed Please advise