Re: this doesn't work in attached script, why?
Re: this doesn't work in attached script, why?
- Subject: Re: this doesn't work in attached script, why?
- From: Simon Topliss <email@hidden>
- Date: Mon, 21 Jul 2014 17:42:35 +0100
> On 21 Jul 2014, at 11:31, Brian Christmas <email@hidden> wrote:
>
> tell application "Finder"
> set tempPath to MailManagerDesktopFolderPath & ":Acrobat Printing List.dat" as text
> set test2 to read file tempPath as list
> set theFlag to false
> end tell
Firstly, nothing in the above block requires the Finder.
Secondly, read (pun not intended, but ‘read’ is the issue) AppleScriptObjC Gotchas II on page 199 of Shane’s book.
Thirdly, stop nesting Tell statements.
Fourthly, stop using the Finder altogether.
Fifthly, re-read Shane’s book from cover to cover and take time to actually understand each chapter. Look at the examples.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden