March 21, 200520 yr Author 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
March 21, 200520 yr 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
March 23, 200520 yr 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
Create an account or sign in to comment