Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Size of info used to work



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:
http://lists.apple.com/mailman/options/applescript-users/markusca% 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: http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >Re: Size of info used to work (From: "Laine Lee" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.