Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script Timer/Filemaker question



Hi,

Someone in another office here is having an AppleScript applet problem that has us stumped.

He's using Script Timer (2.3.1) to run a script every day at 6 am. The script opens a Filemaker database, runs a Filemaker script then quits Filemaker.

When we run it directly from Script Timer or set Script Timer to run the script in a few minutes, it works flawlessly. But, when it's run in the morning it generates an error:

> Wednesday, October 19, 2005 6:00:00 AM: Starting 
> <FM5MailDataNQ.app(RunMailScriptNoQuit)> . (Run Number: 34)
> 
> Wednesday, October 19, 2005 6:02:06 AM: Error attempting to execute 
> <FM5MailDataNQ.app> Number -1713: No user interaction allowed.
> 
We've contacted the Script Timer vendor and followed their suggestions (setting the wait time to 0) to no avail.

Any suggestions? (The fairly short script is included below).



try
	tell the application "FileMaker Pro"
		activate
		open file "FMServer01:PhotoLabOMSbu:EMP_REC.fp5" with password "locust"
		do script "[EXPORT]MailList"
		quit
	end tell
on error the error_message number the error_number
	set the error_text to {runcount, ". Error: ", the error_number, ". ", the error_message} as string
	activate me
	my write_error_log(the error_text)
	return error_text
end try
on write_error_log(this_error)
	set the error_log to ((path to desktop) as text) & "Script Error Log.txt"
	try
		open for access file the error_log with write permission
		write (this_error & return) to file the error_log starting at eof
		close access file the error_log
	on error
		try
			close access file the error_log
		end try
	end try
end write_error_log


Ed Stockly
Los Angeles Times
Assistant Editor TV Times

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

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.