• 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: Shell script date & time coercions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell script date & time coercions...


  • Subject: Re: Shell script date & time coercions...
  • From: Paul Skinner <email@hidden>
  • Date: Tue, 2 Apr 2002 14:55:36 -0500

Ok, you'll probably get more than one reply with various answers, but here's the basic idea.

--Script saved as compiled script and named 'scriptLibrary'
on doSomethingCool(parameters)
display dialog "I'd do something cool with " & parameters & " now if I knew how."
end doSomethingCool
--End script

--script that loads and uses a handler from 'scriptLibrary'
set libraryObject to load script alias "OSX:Users:paulskin:Desktop:scriptLibrary"
tell libraryObject
doSomethingCool("ThisParameter")
end tell
--end script

--Most 'Libraries' have multiple handlers in them. This one has only one.

On Tuesday, April 2, 2002, at 12:13 PM, Mr Tea wrote:

This from has - dated 2/4/02 01:35 pm:

No biggie. There's been one or two osax implementations around for a while
- I think the Format Date OSAX is the most complete of them, though it's
limited to OS8/9.

Exactly so.

Plus some kindy fellow wrote an AS library-based version some time ago
that'll run on most anything:

http://www.barple.connectfree.co.uk/strftimeLib.hqx

Aha! and how does a learning scripter load or otherwise employ an AS
library? I've not used one before

Not sure how the library/osax methods compare for speed to the shell
script, but will hopefully find out sometime this week when I finally
succumb to the dreaded OS X disease...

Shortly after which you'll be seeing all sorts of previously trivial little
things you took for granted in OS 9 as 'biggies'.


Mr Tea
--
"Let the OS stand for at least five years before using."
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


--
Paul Skinner
Digital Assets Manager

Thinkstock
Uncommon Imagery for Intelligent Design
http://www.thinkstock.com
704-716-9371 N.C.
1-888-646-1606 USA
001-704-716-9367 INTL
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Shell script date & time coercions... (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: Coordinating lists
  • Next by Date: Examples of "handle cgi request" anywhere?
  • Previous by thread: Re: guaranteed crash with path to string
  • Next by thread: Re: Shell script date & time coercions...
  • Index(es):
    • Date
    • Thread