• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: this doesn't work in attached script, why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >this doesn't work in attached script, why? (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: this doesn't work in attached script, why?
  • Next by Date: Why is this happening?
  • Previous by thread: Re: this doesn't work in attached script, why?
  • Next by thread: Why is this happening?
  • Index(es):
    • Date
    • Thread