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.

Opening various files with Applescript and copy to field

Featured Replies

I receive several mails and each mail has an attachment generally with people CV.

My database imports the email messagtes and tells me the patf for the various CV files.

They come as PDF, DOC, DOCX or other formats.

Through the Mac I am always able to copy the text no matter what the original file is

How can I create a Script which using Applescript does something like

tell application Finder

to open the file

pause indefinitively

paste or go to next record?

Each Record has a text field called Attachements with the file location such as

MYMAC/Users/DANWAN/Desktop/Job-Mails/Danwan/INBOX/CV_Nam_2012-507de0081d207.pdf

or

MYMAC/Users/DANWAN/Desktop/Job-Mails/Danwan/INBOX/CV_Name_2012-507de0081d207.rtf

or

MYMAC/Users/DANWAN/Desktop/Job-Mails/Danwan/INBOX/CV_Nam_2012-507de0081d207.doc

However this script gives me always an error: Object Not found with an Applescript unknown error -1728

this is the Applescript

tell application "FileMaker Pro Advanced"

tell database "Jobs"

tell table 1

set Ifile to field "Attachments" -- getpath

end tell

end tell

end tell

tell application "Finder"

open Ifile

keystroke S -- select the whole file

Keystroke C-- copies the file

Keystorke W -- closes the fil

end tell

I always get "Object not found"

How can I get this task so I can set the clipboard to the selection and if I need to. past it to the field

Curriculum?

Thanks a lot

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.