Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

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.

  • 7 months later...

Can any please suggest me to "How we can write the apple script" and "How we can import the apple script to filemaler..

could any one know about this implementing process... make the reply fast..

Many thanks in advance.

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

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.