LuizMacedo Posted February 16, 2008 Share Posted February 16, 2008 Hi, folks. I'm using a Applescript inside a script to upload files using Transmit 3.0. But FM Pro 8.5 waits the upload to complete before go on. You can't use FM until upload finishes. Does anybody knows a workaround ? Thank you ! Link to comment Share on other sites More sharing options...
Jack Rodgers Posted February 16, 2008 Share Posted February 16, 2008 I believe you can use Send Event to trigger an external Applescript. Send Event has a cb toggle for waiting or continuing. Link to comment Share on other sites More sharing options...
LuizMacedo Posted February 16, 2008 Author Share Posted February 16, 2008 I believe you can use Send Event to trigger an external Applescript. Send Event has a cb toggle for waiting or continuing. Hi, Jack. Yeah, it could work but I really don't know how to send the alias of the file I want to upload. At first I tried with the path of the file and it didn't work. Do you know any example of how to send the data from a field to a external Applescript ? I didn't see anything like that in the Apple Events Reference. Thank you. Link to comment Share on other sites More sharing options...
LuizMacedo Posted February 16, 2008 Author Share Posted February 16, 2008 Hi, Jack. Yeah, it could work but I really don't know how to send the alias of the file I want to upload. At first I tried with the path of the file and it didn't work. Do you know any example of how to send the data from a field to a external Applescript ? I didn't see anything like that in the Apple Events Reference. Thank you. How this guitar player appeared there ? I didn't do anything .... Link to comment Share on other sites More sharing options...
AHunter3 Posted February 16, 2008 Share Posted February 16, 2008 The word "yeah" with a capital Y becomes a banana playing the guitar. dunno why. Link to comment Share on other sites More sharing options...
LuizMacedo Posted February 17, 2008 Author Share Posted February 17, 2008 Hi, Mentors. Please, I can't make the original Applescript work using Send Apple Event. What could be wrong ? Help. this is the original Applescript: set Pasta to the cellValue of cell "FTP DOWN" of current record tell application "Transmit" set SuppressAppleScriptAlerts to true set theDoc to (make new document at end) tell current session of theDoc connect to "xxxxx" as user "xxxx" with password "xxxxx" set their stuff to Pasta end tell end tell Thank You Link to comment Share on other sites More sharing options...
AHunter3 Posted February 17, 2008 Share Posted February 17, 2008 set Pasta to the cellValue of cell "FTP DOWN" of current record With the AS running from an external AppleScript executable, you're going to have to surround this part with tell application "FileMaker" / end tell. Link to comment Share on other sites More sharing options...
LuizMacedo Posted February 17, 2008 Author Share Posted February 17, 2008 With the AS running from an external AppleScript executable, you're going to have to surround this part with tell application "FileMaker" / end tell. Hi, AHunter. Sorry, I forgot to remove this line in that reply. I'm trying to make Transmit respond, after that I'll take care of passing data from cells to it. But is not working even with this: tell application "Transmit" set theDoc to (make new document at end) tell current session of theDoc connect to "xxxxr" as user "xxxx" with password "xxxx" end tell end tell I even tried removing "tell application", once it is supposed to be executed by Transmit itself. Just to remember, the complete script is working fine inside Filemaker with Perform Applescript. Now I'm trying to use Send Event with this options: Target Application: "Transmit" Send the do script event with: Script Text And after that, the script above. Transmit opens but don't open any window. It seems is don't receive any script. Thank you for your help. Luiz Macedo Link to comment Share on other sites More sharing options...
Recommended Posts