Skip 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.

Filemaker Server and Apple Script

Featured Replies

Hello

I need to run a daily script to unmount and mount a volume using applescript. The script runs fine in AppleScript but does nothing (as far is I can tell) in a scheduled script in FM server.

Is this a problem of location of the files (on the server) that causes the AppleScript to not function?

Testing the same on a local copy of the file works just fine.

The script I'm trying to run inside FM:

tell application "Finder"
	try
		eject disk "directie"
	end try
end tell

set my_volumes to "directie"
set the_volumes to list disks


if my_volumes is not in the_volumes then
	
	try
		mount volume "smb://192.168.0.169/directie" as user name "directie" with password "Vekabestadm2016!"
	end try
	
end if

 

Thanks!

I'm assuming you are using a system script schedule on FMS?  Then the script itself can only be in one location: the FMS scripts folder.  If it is not there you wouldn't be able to select it when you set up the schedule.

This could be a permissions issue: both on the script file itself (owner and group has to be fmserver / fmsadmin ) and the script will be executed in the context of that fmserver user.  That user needs the proper rights to do what you want; which it may not have.

  • Author

Thanks Wim,

 

I assumed that because I was able to select the script in the server (using my admin username/password) I would be able to run it. I didn't think about the user rights on the machine itself as script maker ran the script on the FMS just fine. I'll look into the this now. Thanks for helping!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.