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



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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to 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.