• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Retrospect & Filemaker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Retrospect & Filemaker


  • Subject: Retrospect & Filemaker
  • From: Philip Gruber <email@hidden>
  • Date: Sun, 26 Nov 2006 20:33:24 -0500

Hello All,
I am new to this list and have been following it for a little while now. I am in the process of learning Apple Script and need help figuring this one out. I have found a few different scripts to accomplish this but can not get them to work as planned. I have a filemaker 5 database running on a G5 that is also running OSX Server (just for file sharing). I need to quit that file (home.fp5-part of a filemaker solution named BookHound (for book sellers).). I need to accomplish the following:
1) Quit FileMaker Pro (not server) or more accurately a file named home.fp5 inside a folder named BookHound 6 Folder
2) Run a retrospect script (named M-W-F BU or another one named T-T-S BU, which are both setup in Retrospect as scheduled scripts)
3) Relaunch the file home.fp5 after Retrospect quits.


I have been successful in writing two simple scripts and naming them "Retrospect Event Handler" (one at a time) and putting it in the library/preferences/retrospect so it will auto launch when Retrospect starts. But it also runs when Retrospect quits. These two simple scripts can do one of two things: quit the home.fp5 document or launch the home.fp5 document when Retrospect quits. When I try to put these two together it just doesn't work correctly. The other thing I would like to do is only have the final script run if Retrospect auto launches and not run when I manually launch Retrospect to check the log or scripts, etc.

This script quits FileMaker:

tell application "FileMaker Pro"
	activate
	quit
end tell

This script that launches the home.fp5 document is:

tell application "Finder"
open document file "Home.fp5" of folder "BookHound 6 Folder" of folder "Desktop" of folder "philip" of folder "Users" of startup disk
end tell


If I put them together, FileMaker quits and relaunches three times when Retrospect starts:

tell application "FileMaker Pro"
	activate
	quit
end tell

tell application "Finder"
activate
open document file "Home.fp5" of folder "BookHound 6 Folder" of folder "Desktop" of folder "philip" of folder "Users" of startup disk
end tell


This is one of several scripts I am trying to work with:

on scriptStart given scriptName:theScript, startDate:theDate
	if theScript is "Back Up Database" then
		tell application "FileMaker Pro"
			force quit
		end tell
	end if
end scriptStart

on scriptEnd given scriptName:theScript, scriptErrorMessage:theError, errorCount:theErrorCount
if theScript is "Back Up Database" then
tell application "FileMaker Pro"
activate
end tell
end if
end scriptEnd


I hope this makes sense to someone. Can anyone guide me on this? And what is a good book to work with for Apple Script?

Thanks,
Philip
-----------------------------------------------------------
"It's getting better all the time."--The Beatles
-----------------------------------------------------------
Philip D. Gruber
InkWell, Inc.
Tel: 212-929-0171 Fax: 212-741-7913
email@hidden * iChat: philip_gruber
ACTC 10.2 • ACHD 10.4 • Member "Apple Consultants Network" (ACN) • Apple Authorized Business Agent (AA070300)


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
  • Prev by Date: Re: [OT] recombine resource and data fork
  • Next by Date: FTP for FileMaker Application...
  • Previous by thread: Re: [OT] recombine resource and data fork
  • Next by thread: FTP for FileMaker Application...
  • Index(es):
    • Date
    • Thread