Sample Header Ad - 728x90

Ask Different (Apple)

Q&A for power users of Apple hardware and software

Latest Questions

3 votes
1 answers
284 views
Applescript permissions in Mac OS 12
My music licensing business uses Filemaker and quite a few Applescripts as part of its day to day operations. For years we have been running everything on OS 10.14 without any issues. We recently updated our OS to 12.1. Many of the Applescripts are now broken. I've spent the better part of the day t...
My music licensing business uses Filemaker and quite a few Applescripts as part of its day to day operations. For years we have been running everything on OS 10.14 without any issues. We recently updated our OS to 12.1. Many of the Applescripts are now broken. I've spent the better part of the day trying to get one that imports music files into Music (the script used to use iTunes), sets all the tags, and converts them to other file formats and found that many of the steps simply do not trigger seemingly from permissions issues. Changing: set newfile to ("path to file") to set newfile to alias ("path to file") fixed the ability to import the music track in. I also ran: -e 'tell application "Music" to activate' from Terminal to see if that would fix the permission, and and that did fix many of the steps if I run the script from the Script Editor. However, the scripts need to run from Filemaker. So, 1) is there a similar command I can run to allow FileMaker to run the scripts without issue (I tried adding Filemaker to the Privacy Pane - both Accessibility and Full Disk Access - but no luck), and 2) are there "general" best steps when upgrading Applescripts to work with OS 12? Thanks for any help! Update: In Security & Privacy > Automation, I do also have FileMaker Pro allowed to control Finder and Music.
user1588920 (31 rep)
Sep 28, 2022, 11:01 PM • Last activity: Jul 14, 2025, 10:08 AM
1 votes
1 answers
86 views
Are locally-stored Filemaker Go databases included in an iPad backup?
There are two options for backing up an iPad: > - icloud > - Backup the most important data on your iPad to iCloud > - This Computer > - A full backup of your iPad will be stored on this computer Does either of these options backup a locally-stored database within Filemaker Go?
There are two options for backing up an iPad: > - icloud > - Backup the most important data on your iPad to iCloud > - This Computer > - A full backup of your iPad will be stored on this computer Does either of these options backup a locally-stored database within Filemaker Go?
mweiss (1168 rep)
Mar 3, 2022, 11:59 PM • Last activity: Jul 21, 2024, 09:05 PM
1 votes
0 answers
73 views
AppleScript Error - Syntax Error
I have Keyboard Maestro macros that call AppleScripts to open FileMaker Pro and open a specific file. This AppleScripts have worked for years but since the update to MacOS 12.5 from 12.4 they stoped working. I am now getting the error: ```none Expected end of line but found """. ``` The script is: `...
I have Keyboard Maestro macros that call AppleScripts to open FileMaker Pro and open a specific file. This AppleScripts have worked for years but since the update to MacOS 12.5 from 12.4 they stoped working. I am now getting the error:
Expected end of line but found """.
The script is:
tell application "FileMaker Pro"
getURL "fmp://server/File.fmp12"
end tell
When running this in Script Editor, after clicking OK in the error dialog, it highlights the " just in front of fmp:. Any clues what is different now?
jkluchnik (11 rep)
Jul 24, 2022, 05:41 PM • Last activity: Jan 14, 2023, 04:29 PM
1 votes
3 answers
469 views
Filemaker How to Import into related tables
I recently purchased FileMaker Pro and created a new database with the "Contact" template. I have a CSV file with Names, addresses and phone numbers. When I choose import, the dialog only allows me to import fields that go into the 'Contacts' table. How do I get the address and phone number into the...
I recently purchased FileMaker Pro and created a new database with the "Contact" template. I have a CSV file with Names, addresses and phone numbers. When I choose import, the dialog only allows me to import fields that go into the 'Contacts' table. How do I get the address and phone number into the related address and phone tables? I read in the support docs that you can only import into 1 table at a time, but provides no details on how to choose the related table.
Leonard (275 rep)
Dec 2, 2021, 06:57 PM • Last activity: Jan 12, 2023, 08:38 PM
1 votes
3 answers
1451 views
Issues with Mail.app AppleScript scripts
I'm trying to get a simple AppleScript to run from a rule in Mail.app under Catalina. The script is very basic: ````AppleScript use AppleScript version "2.4" -- Yosemite (10.10) or later use scripting additions using terms from application "Mail" on perform mail action with messages messageList in m...
I'm trying to get a simple AppleScript to run from a rule in Mail.app under Catalina. The script is very basic:
`AppleScript
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions

using terms from application "Mail"
	on perform mail action with messages messageList in mailboxes mbox for rule aRule
		
		repeat with theMessage in theMessages
			set thisSender to (sender of theMessage as string)
			my WriteLog("Recieved email from " & thisSender)
		end repeat
		
	end perform mail action with messages
end using terms from

-- the code, from here on, has been tested and runs from Script Debugger or Script Editor
on write_to_file(this_data, target_file, append_data) -- (string, file path as string, boolean)
	try
		set the target_file to the target_file as text
		set the open_target_file to ¬
			open for access file target_file with write permission
		if append_data is false then ¬
			set eof of the open_target_file to 0
		write this_data to the open_target_file starting at eof as «class utf8»
		close access the open_target_file
		return true
	on error
		try
			close access file target_file
		end try
		return false
	end try
end write_to_file

on WriteLog(the_text)
	set this_file to (((path to desktop folder) as text) & "log.txt")
	my write_to_file(the_text, this_file, true)
end WriteLog
` I have added the following rule to Mail.app: Mail.app rule dialog I have also enabled full disk access for Mail.app: enter image description here The rule runs - the messages are moved to the filing folder - but the log file is not updated. What else should I be looking at, to try to solve this issue? ---- ## Update I noticed a small gear icon appearing in the menu bar when the script was run. Through some manoeuvring I managed to right-click the icon, and capture the resulting menu. I suspect this is some automation indicator ( possibly CoreCervices/ScriptMonitor ?) ScriptMonitor menu item? I therefore tried enabling CoreCervices/ScriptMonitor in the FullDisk Access pane of the Security & Privacy's 'Privacy' tab... no joy. Apart from the tccutil reset, does anyone know if there is a way to trigger a request from Mail.app for AppleEvent access of say the Finder, so that an option appears in the 'Automation' tab of Security & Privacy? ---- Update: Here's the full script, including the addEmailToDB() function. It works fine as a standalone, manually run, but doesn't respond when run from Mail.app. The Allow Apple events... extended privilege is enabled for Admin, and the FM file is set to open as Admin, with no password, and is already open before the script runs.
`AppleScript
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions

using terms from application "Mail"
	on perform mail action with messages theMessages in mailboxes mbox for rule aRule
		
		repeat with theMessage in theMessages
			set thisSender to (sender of theMessage as string)
			set thisSubject to (subject of theMessage as string)
			set thisContent to (content of theMessage as string)
			my WriteLog("Recieved email from " & thisSender & ", Subject: " & thisSubject & return)
			my addEmailToDB("mails", "mails", thisSender, "", "", "", thisSubject, thisContent)
		end repeat
		
	end perform mail action with messages
end using terms from

-- the code, from here on, has been tested and runs from Script Debugger or Script Editor
on write_to_file(this_data, target_file, append_data) -- (string, file path as string, boolean)
	try
		set the target_file to the target_file as text
		set the open_target_file to ¬
			open for access file target_file with write permission
		if append_data is false then ¬
			set eof of the open_target_file to 0
		write this_data to the open_target_file starting at eof as «class utf8»
		close access the open_target_file
		return true
	on error
		try
			close access file target_file
		end try
		return false
	end try
end write_to_file

on WriteLog(the_text)
	set this_file to (((path to desktop folder) as text) & "log.txt")
	my write_to_file(the_text, this_file, true)
end WriteLog

on addEmailToDB(theDB, theTable, sender, recipient, cc, bcc, subject, body)
	try
		tell application "FileMaker Pro 18 Advanced"
			activate
			show database theDB
			tell table theTable of database theDB
				set newRec to create new record
				show newRec
				tell newRec
					set cell "from" to sender
					set cell "to" to recipient
					set cell "cc" to cc
					set cell "bcc" to bcc
					set cell "subject" to subject
					set cell "body" to body
				end tell
			end tell
		end tell
		return true
	on error
		return false
	end try
end addEmailToDB
`
Dycey (13 rep)
Mar 4, 2020, 06:08 PM • Last activity: Sep 17, 2020, 03:34 PM
0 votes
0 answers
153 views
Unable to Print in FileMaker Pro 18 Advanced under Catalina, message "Change the custom paper size to the correct value, or use Scale to fit"
As of macOS Catalina upgrade, although I am able to see the Print dialog box, I get this error when I try to click the "Print" button: [![enter image description here][2]][2] Unable to Print in FileMaker Pro 18 Advanced under Catalina, gets error message "Change the custom paper size to the correct...
As of macOS Catalina upgrade, although I am able to see the Print dialog box, I get this error when I try to click the "Print" button: enter image description here Unable to Print in FileMaker Pro 18 Advanced under Catalina, gets error message "Change the custom paper size to the correct value, or use Scale to fit paper size", ***although "Scale to fit paper size" is already selected*** enter image description here Filemaker 18.0.3.317 I am trying to print to a Borther HL-L2300D laser printer and I am running on Mac OS Catalina 10.15.4 2020-05-13 Note; this only happens for me in one file. it happens to be my recipes (for real!) recipes.fmp12
Jason FB (413 rep)
May 10, 2020, 12:21 AM • Last activity: May 13, 2020, 03:52 PM
2 votes
1 answers
381 views
AppleScript to Add Multiple Files to VLC From List Results
I have a FileMaker Pro database of music files which uses AppleScript to pass it's search results into an iTunes playlist. I would like to use VLC instead of iTunes to play the audio files since I have a number of FLAC files which iTunes will not play. I haven't been able to figure out how to pass t...
I have a FileMaker Pro database of music files which uses AppleScript to pass it's search results into an iTunes playlist. I would like to use VLC instead of iTunes to play the audio files since I have a number of FLAC files which iTunes will not play. I haven't been able to figure out how to pass the AppleScript results to VLC. It's easy to use AppleScript to get VLC to play a folder of music using: tell application "VLC" OpenURL "file:///Volumes/NoDoubt/Music/Rock Pop/PQR/Pink Floyd/Wish You Were Here/" play end tell However, if I wanted to instead play a mix of songs from a variety of folders I need to be able to insert each file path into the VLC player. This is what the AppleScript returned search results from FileMaker Pro looks like: {"NoDoubt:Music:Rock Pop:ABC:The Beatles:Abbey Road:01_come_together_alac.m4a", "NoDoubt:Music:Rock Pop:DEF:Fleetwood Mac:Rumours:01_second_hand_news_alac.m4a", "NoDoubt:Music:Rock Pop:MNO:Van Morrison:hymns_to_the_silence_disc_1:1-02_i'm_not_feeling_it_anymore_alac.m4a", "NoDoubt:Music:Rock Pop:PQR:Pink Floyd:Wish You Were Here:04_wish_you_were_here_alac.m4a"} How can I pass the search results of these individual tracks to VLC to play?
Joe (23 rep)
Apr 10, 2019, 01:10 AM • Last activity: Apr 11, 2019, 09:36 PM
1 votes
2 answers
936 views
How to install Filemaker on my iPad?
I am not familiar with the iPad but my MacBook died and I can't afford a new one. How can I install software that is not from the Apple Store on my iPad? I have the software `.ipa` file, but how do I install it?
I am not familiar with the iPad but my MacBook died and I can't afford a new one. How can I install software that is not from the Apple Store on my iPad? I have the software .ipa file, but how do I install it?
Majis (11 rep)
Jan 30, 2018, 07:09 AM • Last activity: Jan 30, 2018, 10:31 AM
2 votes
1 answers
737 views
Does FileMaker Server 16 prevent use of the system apache in macOS?
I'm running FileMaker Server 16 ("FMS") on macOS High Sierra, *without* the macOS Server package. I set the FMS web server components up on ports 8080 and 8443 because I wanted to continue running other web services on ports 80 and 443. I notice that FMS runs `/usr/sbin/httpd` (i.e. Apache) under it...
I'm running FileMaker Server 16 ("FMS") on macOS High Sierra, *without* the macOS Server package. I set the FMS web server components up on ports 8080 and 8443 because I wanted to continue running other web services on ports 80 and 443. I notice that FMS runs /usr/sbin/httpd (i.e. Apache) under its fmserver user, with configuration at /Library/FileMaker Server/HTTPServer/conf/httpd.conf. I was trying to configure the system Apache (at /etc/apache2/httpd.conf and using apachectl start), but couldn't get it working at all, even with the default config. apachectl -t said Syntax OK. There were no error messages or logs, and connections to port 80 were refused. The only relevant thing I could find on the web is [a report of the FMS installer refusing to install if Apache is running as part of macOS Server](http://automatica.com.au/2017/07/install-filemaker-server-16-on-a-mac-with-macos-server-app-v5/) . I was able to serve on port 80 using nginx installed via brew. Is the fact that FMS is running apache preventing me from running it under another user?
Jeremy Field (141 rep)
Jan 9, 2018, 12:18 AM • Last activity: Jan 9, 2018, 05:38 PM
0 votes
1 answers
1932 views
Monitor and automatically restart a process
I have a Mac Pro running OS X 10.9 with FileMaker Server (FMS) installed. One of the processes running is `fmsased` (script execution daemon). Periodically this crashes and I have to log into and restart it from the command line (`fmsadmin restart fmse -y`). Is there a way of monitoring that process...
I have a Mac Pro running OS X 10.9 with FileMaker Server (FMS) installed. One of the processes running is fmsased (script execution daemon). Periodically this crashes and I have to log into and restart it from the command line (fmsadmin restart fmse -y). Is there a way of monitoring that process and if it fails automatically issuing the command line instruction? I've looked at Lingon but couldn't figure out how to do this with it. Thanks in advance.
Matt (1 rep)
Aug 6, 2016, 02:16 PM • Last activity: Aug 8, 2016, 10:33 PM
2 votes
2 answers
11135 views
Filemaker 12 Trial Installer
Is there an archive of old FileMaker Trial installers somewhere? I have a legit (_seriously!_) license for FM12, but the installer is nowhere to be found.
Is there an archive of old FileMaker Trial installers somewhere? I have a legit (_seriously!_) license for FM12, but the installer is nowhere to be found.
Sam (3018 rep)
Nov 17, 2014, 05:03 PM • Last activity: Jun 12, 2016, 04:10 PM
Showing page 1 of 11 total questions