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.

Mail.app Message Attributes

Featured Replies

Hey all,

I'm trying to set variables in AppleScript as properties of the message that is currently visible in the preview pane (currently selected). Here's what I've got.

tell application "FileMaker Pro Advanced"

activate

open "path:FILES.fp7"

end tell

on open theDropped

repeat with oneDrop in theDropped

tell application "Finder"

set thePath to oneDrop as string

end tell

if thePath contains "apple.mail.drag" then

tell application "Mail"

activate

set theSender to sender of message

end tell

display dialog theSender

end if

tell application "FileMaker Pro Advanced"

activate

open "path:FILES.fp7"

set cell "gF_FilePath" of current record to thePath

do script "INSERT_FILE_LOOP"

end tell

end repeat -- go back for another (assuming a one-at-a-time process)

return

end open

The bold section is where I'm having issues. I need it to go to Mail, pull the sender of the message and then go to FileMaker and set a cell with that value. It's giving me a message, "can't set of application "Mail".

Any thoughts on why this isn't working? I can't seem to find any help online. Thanks, in advance, for your help.

Michael

  • Newbies

Michael,

Try this:

tell application "Mail"

activate

set theMsg to selection as reference

set theSender to sender of theMsg

end tell

display dialog theSender

Edited by Guest

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.