Re: Size of info used to work
Re: Size of info used to work
- Subject: Re: Size of info used to work
- From: "Laine Lee" <email@hidden>
- Date: Fri, 28 Jul 2006 12:43:43 -0500
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:
This email sent to email@hidden