Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4404 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

This topic is 4404 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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