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.

Get NIC number with Applescript FM 6.0

Featured Replies

I have been able to use applescript for FileMaker 10.2.8 and up to retrieve the NIC number from my Mac. However, I cannot get this to work properly with OS 9.2.2

I keep getting an error with the Write script: "FileMaker Developer got an

error: Unable to coerce the data to the desired type (error -1700)".

Does anyone have a simple Applescript that will allow me to grab the NIC number and save it into a field in FileMaker 6.0. I have found this script, I don't know if it could be edited to work.

In order to get the MAC Address from Apple System Profiler, you first need to know that ASP refers to this as the "AppleTalk Address", and that it returns the address in AppleScript's list format (ex: {"00.0a.27.d6.9d.06"}). Secondly, you need to know where ASP *is*, otherwise you'll get the dreaded "Please locate Apple System Profiler:" dialog box. I discovered that if you can let MC locate it (through whatever means you need - directories(), files(), etc.), you need to make sure that the default directory is set to the location of ASP, otherwise you'll get the "Please locate:" box.

On my Mac (and I believe most modern OS8-9 Macs), ASP is located in the Apple Menu Items folder. So here's the script (assuming MC has found it in the Apple Menu Items folder):)

function GetMACAddress

local tResult

set the directory to specialFolderPath("apple")

put "tell application" && quote & "Apple System Profiler" & quote & cr &

"get appletalk address" & cr & "end tell" into getMACScript

put "tell application" && quote & "Apple System Profiler" & quote & cr &

"close window" && quote & "Apple System Profiler" & quote & cr & "end tell" into quitASPScript

set the directory to specialFolderPath("apple")

do getMACScript as AppleScript

put the result into retVal

do quitASPScript as AppleScript

replace "{" with "" in retVal

replace "}" with "" in retVal

replace quote with "" in retVal

return retVal

end GetMACAddress

Note that although you can't send "quit" to ASP, you CAN say "close window 'Apple System Profiler'" and it does the same thing!

If anyone can fix this code, I would be extremely greatful! The main problem is also that you are required to browse to the apple system profiler.

I apprecitate any help I can get with this.

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.