Re: Applescript in a Nutshell
Re: Applescript in a Nutshell
- Subject: Re: Applescript in a Nutshell
- From: Matthew Smith <email@hidden>
- Date: Thu, 07 Nov 2002 19:15:07 +1100
The example script is not relevant in OS X. OS X's memory management is
different to OS 9, so the Finder's dictionary has no reference for "largest
free block".
--
Matthew Smith
>
From: Joey Parshley <email@hidden>
>
Date: Wed, 6 Nov 2002 19:26:17 -0500
>
To: email@hidden
>
Subject: Applescript in a Nutshell
>
>
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.
_______________________________________________
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.