• 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: Days and hours
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Days and hours


  • Subject: Re: Days and hours
  • From: Martin Orpen <email@hidden>
  • Date: Sat, 22 Oct 2005 13:12:03 +0100
  • Thread-topic: Days and hours

on 20/10/05 18:16, Mark J. Reed at email@hidden wrote:

> But I'm not using SMILE, and chrono, like change, is a SMILE-only feature.


If you're using Tiger you can time stuff without using additions:


    script o
        tell application "Finder" to get folder of someFile
    end script

    set someFile to choose file
    timeIt(o)

    on timeIt(o)
        tell application "Automator"
            set foo to call method "timeIntervalSinceReferenceDate" of class
"NSDate"
            o
            set bar to call method "timeIntervalSinceReferenceDate" of class
"NSDate"
            return (bar - foo)
        end tell
    end timeIt


-->0.008687973022


And if you are using Panther you can achieve the same thing by calling on an
AppleScript Studio app instead of Automator.

It's nice to have found something useful to do with Automator though :-)

--
Martin Orpen


 _______________________________________________
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: Days and hours
      • From: Emmanuel <email@hidden>
    • Re: Days and hours
      • From: Martin Orpen <email@hidden>
References: 
 >Re: Days and hours (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Change a folder to list view
  • Next by Date: Re: What have I done? / do shell script mystery
  • Previous by thread: Re: Days and hours
  • Next by thread: Re: Days and hours
  • Index(es):
    • Date
    • Thread