November 2, 201213 yr 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