• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Size of info used to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Size of info used to work
      • From: Mark Butler <email@hidden>
  • Prev by Date: Re: Scripting Finder window column widths
  • Next by Date: Re: Size of info used to work
  • Previous by thread: Size of info used to work
  • Next by thread: Re: Size of info used to work
  • Index(es):
    • Date
    • Thread