markmanley Posted March 21, 2005 Author Share Posted March 21, 2005 Running FMPro 7 locally... I run the following script and I'm getting an error (Timeout on appleEvent) on the SECOND "activate" command. The first 'tell... end tell' section works perfectly, but the second seems to fail. I thought it was an error in the second FM database, but I switched the order and the problem still comes up during the second "activate". - Just for fun, I removed the second "activate" and the same timeout error occurs on the "open file..." command. - The last command in the FIRST FM database script is to "close document" (which works fine). Is this more AppleScript voodoo?? Thanks in advance for any help/advice. tell application "FileMaker Pro 7" activate open file "Macintosh HD:Users:user1:Desktop:New system:TS101Creator.fp7" do script FileMaker script "Run Report" end tell tell application "FileMaker Pro 7" activate open file "Macintosh HD:Users:user1:Desktop:New system:TS103Creator.fp7" do script FileMaker script "vertToHoriz22" end tell Link to comment Share on other sites More sharing options...
markmanley Posted March 21, 2005 Share Posted March 21, 2005 Running FMPro 7 locally... I run the following script and I'm getting an error (Timeout on appleEvent) on the SECOND "activate" command. The first 'tell... end tell' section works perfectly, but the second seems to fail. I thought it was an error in the second FM database, but I switched the order and the problem still comes up during the second "activate". - Just for fun, I removed the second "activate" and the same timeout error occurs on the "open file..." command. - The last command in the FIRST FM database script is to "close document" (which works fine). Is this more AppleScript voodoo?? Thanks in advance for any help/advice. tell application "FileMaker Pro 7" activate open file "Macintosh HD:Users:user1:Desktop:New system:TS101Creator.fp7" do script FileMaker script "Run Report" end tell tell application "FileMaker Pro 7" activate open file "Macintosh HD:Users:user1:Desktop:New system:TS103Creator.fp7" do script FileMaker script "vertToHoriz22" end tell Link to comment Share on other sites More sharing options...
dkemme Posted March 23, 2005 Share Posted March 23, 2005 Your process needs more time. AppleScript gets angry if it takes more than two minutes. Try adding a timeout: tell application "FileMaker Pro 7" activate open file "Macintosh HD:Users:user1:Desktop:New system:TS103Creator.fp7" with timeout (5*60) seconds -- this will give you five minutes to complete the task do script FileMaker script "vertToHoriz22" end timeout end tell Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6998 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now