Re: Size of info used to work
Re: Size of info used to work
- Subject: Re: Size of info used to work
- From: Mark Butler <email@hidden>
- Date: Fri, 28 Jul 2006 11:43:53 -0700
Interestingly enough they both seem to work on my Power PC mac
10.4.7.. But neither one works on my Intel MacBook 10.4.7.
The shell script one works on both.. but thats kinda a hassle isn't it?
M
On Jul 28, 2006, at 10:43 AM, Laine Lee wrote:
On 7/28/06 11:39 AM, "Laine Lee" <email@hidden> wrote:
This works:
set the item_info to info for (path to Applications folder)
set size_of_info to size of item_info
This used to work:
set the item_info to info for (path to Library folder)
set size_of_info to size of item_info
How can I make it work now? (Mac OS X 10.4.7.)
Thanks.
OK, I guess it's not as bad as it sounds. But I'd still like to add
to my collection if anybody has anything simpler.
property tmpfile : "/tmp/execme"
set theShellScript to "osascript -e 'set the item_info to info for
(path to library folder)
set size_of_info to size of item_info'"
do shell script "echo" & space & quoted form of theShellScript &
space & ">" & space & tmpfile
do shell script "chmod +x" & space & tmpfile
set theresult to do shell script tmpfile with administrator privileges
do shell script "rm" & space & tmpfile
theresult
--
Laine Lee _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden