Jump to content
Server Maintenance This Week. ×

Apple script example which invokes a FileMaker script and passes parameters to the invoked FM Script


This topic is 5579 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

Here is my requirement.

I have a mail received, its body contains a link to some executable file.

e.g. /Macintosh HD/Host Folder/samplefile.sh

samplefile.sh is a shell script file created for Mac (OSX).

In samplefile.sh I am using...osascript to call an Apple Script.

The Apple script in turn should invoke a FileMaker script and pass some parameter to it as well.

Currently I am facing the following problems::

1. This whole logic should run on a click of the above mentioned link....which is not achieved.

2. How to invoke a FileMaker script through an Apple script?

3. How to pass parameters to the invoked FileMaker script, while calling it from an Apple script?

I am not sure about whether .sh file will serve my purpose? If any other alternative please suggest....

Should this can be achieved other way, instead of using apple script?...I dont want to use any plugins or any other external applications.

Consider the whole environment where this logic has to be implemented is Macintosh.

Regards

Pushkraj

Edited by Guest
Link to comment
Share on other sites

Re points #2 & #3 see:

http://www.fmforums.com/forum/showtopic.php?tid/195241/

I am not sure about whether .sh file will serve my purpose? If any other alternative please suggest....

Hard to answer without knowing your purpose. If you want to trigger Filemaker scripts by e-mails, I believe you could set up the Mail application's rules to go over the received messages and run a specific Applescript when specific conditions have been met, e.g.

If all of the following conditions are met:

•From: is equal to: [email protected]

•Message Content: Contains: Drop the big one!

Perform the following actions:

•Run AppleScript: ~/Documents/BombsAway.scpt

Of course, some security measures would be in order.

Link to comment
Share on other sites

  • 7 months later...

make the reply fast..

You are hijacking another thread aren't you, but Filemaker have several options in that direction. It largely depends on the task at hand if the script as such should be embedded or called as a compiled executed script via Send Event...

http://fmpscripting.blogspot.com/2008/09/filemaker-perform-applescript-mac-os.html

Start a new thread and let us know why you think you would need applescript?

--sd

Link to comment
Share on other sites

This topic is 5579 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.