• 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
Applescript in a Nutshell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applescript in a Nutshell


  • Subject: Applescript in a Nutshell
  • From: Joey Parshley <email@hidden>
  • Date: Wed, 6 Nov 2002 19:26:17 -0500

I am reading this book and tried out the first script. I compiled in OS
9 but did not in Jaguar can someone tell me why?

Here is the script
tell application "Finder"
activate
set memblock to (largest free block / 1024 / 1024)
display dialog "The largest free block is about " & (memblock) &,
" megabytes."
end tell

When I try to check the syntax I get the following syntax error and the
word "free" in the parentheses is highlighted.

"Expected ',' but found identifier."

Does applescripting not carry over into Jaguar? What should I be
looking at to decipher the error statement? I tried the dictionary for
Finder and thought I might see something about "free" but no dice.

TIA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Applescript in a Nutshell
      • From: Mr Tea <email@hidden>
    • Re: Applescript in a Nutshell
      • From: Matthew Smith <email@hidden>
  • Prev by Date: Re: AppleScript's script size limit
  • Next by Date: Re: Automating a task in the finder
  • Previous by thread: Re: applescript-users digest, Vol 3 #1038 - 14 msgs
  • Next by thread: Re: Applescript in a Nutshell
  • Index(es):
    • Date
    • Thread