Re: Time Stamp String
Re: Time Stamp String
- Subject: Re: Time Stamp String
- From: Michelle Steiner <email@hidden>
- Date: Mon, 14 Mar 2005 14:12:56 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mar 14, 2005, at 1:55 PM, Todd Geist wrote:
I created this script which works just fine but I was wondering if
there was
a better way.
Here's my effort:
set the dt to (current date) -- replace with whatever method of getting
the date that you need
set the FullString to my CompileDate(dt)
on CompileDate(input)
set the FullString to (year of input as text) & pad(day of input as
text) & pad(month of input as integer as text) & "_" & time of input as
text
end CompileDate
on pad(instring)
return text -2 through -1 of ("0" & instring)
end pad
- -- Michelle
- --
Your right to free speech does not incur an obligation for anyone to
listen.
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.0 (Build 1799)
Comment: To you from me, courtesy of PGP.
iQA/AwUBQjX+akX3pGKCIlLEEQKy9QCfalLbI35yW+GBovb5Tw6E2R9M15MAn0DD
YXeI66YEAF+iqHMe54+vCgLK
=cdCg
-----END PGP SIGNATURE-----
_______________________________________________
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