Applescript in FMPro
Applescript in FMPro
- Subject: Applescript in FMPro
- From: John Mitchell <email@hidden>
- Date: Tue, 18 Jun 2013 17:51:06 +1000
Colleagues
SD 5.0.5, OSX 10.7.5, FMPro Advanced 12.0v4
I put this into a FMPro script Perform Applescript and when I try to save it I get this message: Expected “,” but found identifier. and the variable FileRef is highlighted on line 26: set memberList to (read FileRef as {text} using delimiter {fileDelimiterCR, fileDelimiterLF})
any clues??
property fileDelimiterLF : ASCII character 10 property fileDelimiterCR : return
set docLoc to "mitchPro:Users:johnm:Documents:Master:IAI Events:NBI BIM Object Library WG"
-- open text file of attendees
try set filePath to choose file with prompt ¬ "Select member list" default location docLoc as alias of type {"txt"} without multiple selections allowed on error quitOdbScript(dialogStateFieldname, odbActivities) of me return end try try set FileRef to (open for access filePath with write permission) tell application "Finder" set listFileName to (name of (file filePath)) end tell on error errMsg number errNum display alert "file " & filePath & " cannot be opened" message "Oops" buttons {"Quit"} default button "Quit" return false end try
set memberList to (read FileRef as {text} using delimiter {fileDelimiterCR, fileDelimiterLF})
close access FileRef
regards
John
CQR Pty Ltd 1005/2 Dind Street, Milsons Point, NSW 2061 Australia ABN: 45 001 785 191 • NSW ARBN: 3605 Email: email@hidden • Mob: +61 410 318 131 Skype: jrmitchell Tel: +61 (2) 9922 3785
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden