Welcome to MacForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Problems with colons ':'

 
Goto page 1, 2
   Macintosh computer (Home) -> Apple Scripts RSS
Next:  travel cheap ampicillin gram negative ampicillin ..  
Author Message
Jo_y

External


Since: Jun 22, 2008
Posts: 30



(Msg. 1) Posted: Wed Jul 23, 2008 11:44 am
Post subject: Problems with colons ':'
Archived from groups: alt>comp>lang>applescript (more info?)

I wrote time ago, on Panther (vers. 10.3) a Script to identify the day
(as string, like 'thursday') of futur or ancient dates (like '1400' or
'2030' as year)
Moving to Tiger i discover with disappointing that colons now, are
recognized not more as divisor signs, but the time string like
12:03:01 results as a single word, word 5 of --get (current date) as
text.
Before '12:03:01' was read as 'word 1= 12, word 2=03, word 3=01'
So, i ask if this is modificable, with a global or property? (commands
where i use rarely, yet to discover), at last, perhaps thru a plugin?
Because it is much more inconvenient to filter thru characters, as
thru words. :**

 >> Stay informed about: Problems with colons ':' 
Back to top
Login to vote
Michelle Steiner

External


Since: Jul 15, 2003
Posts: 4218



(Msg. 2) Posted: Wed Jul 23, 2008 12:06 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived

 >> Stay informed about: Problems with colons ':' 
Back to top
Login to vote
Michelle Steiner

External


Since: Jul 15, 2003
Posts: 4218



(Msg. 3) Posted: Wed Jul 23, 2008 12:21 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 3131



(Msg. 4) Posted: Wed Jul 23, 2008 2:00 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
,
Jo_y wrote:

> I wrote time ago, on Panther (vers. 10.3) a Script to identify the day
> (as string, like 'thursday') of futur or ancient dates (like '1400' or
> '2030' as year)
> Moving to Tiger i discover with disappointing that colons now, are
> recognized not more as divisor signs, but the time string like
> 12:03:01 results as a single word, word 5 of --get (current date) as
> text.
> Before '12:03:01' was read as 'word 1= 12, word 2=03, word 3=01'
> So, i ask if this is modificable, with a global or property? (commands
> where i use rarely, yet to discover), at last, perhaps thru a plugin?
> Because it is much more inconvenient to filter thru characters, as
> thru words. :**

Not sure I understand where your problem lies. This gets the current
seconds for me:

-- begin script
set today to the (current date) as text
return word 7 of today
-- end script

--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
 >> Stay informed about: Problems with colons ':' 
Back to top
Login to vote
Patrick Stadelmann

External


Since: Nov 12, 2003
Posts: 247



(Msg. 5) Posted: Wed Jul 23, 2008 9:25 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Michelle Steiner wrote:

> words of time string of (current date)
>
> --> {"Jul", "23", "12", "01", "49", "PM"}

Only the time is supposed to be returned in "time string" (which is the
case in 10.4.11). If you really get "Jul" and "23" in the output of the
command above in Leopard, submit a bug report.

Patrick
--
Patrick Stadelmann
 >> Stay informed about: Problems with colons ':' 
Back to top
Login to vote
Michelle Steiner

External


Since: Jul 15, 2003
Posts: 4218



(Msg. 6) Posted: Wed Jul 23, 2008 9:25 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Dave Balderstone

External


Since: Mar 21, 2006
Posts: 1675



(Msg. 7) Posted: Wed Jul 23, 2008 9:25 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 3131



(Msg. 8) Posted: Wed Jul 23, 2008 9:25 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Dave Balderstone wrote:

> In article , Michelle
> Steiner wrote:
>
> > In article ,
> > Patrick Stadelmann wrote:
> >
> > > > words of time string of (current date)
> > > >
> > > > --> {"Jul", "23", "12", "01", "49", "PM"}
> > >
> > > Only the time is supposed to be returned in "time string" (which is
> > > the case in 10.4.11). If you really get "Jul" and "23" in the output
> > > of the command above in Leopard, submit a bug report.
> >
> > Yup, I really do. I'll get that bug report written up soonest.
>
> Check what scripting additions you have loaded. Here, OS X 10.5.4, I
> get {"2", "15", "21", "PM"}.

Peculiar... I get:

{"3", "19", "50", "PM"}

Big difference! What gives?

--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
 >> Stay informed about: Problems with colons ':' 
Back to top
Login to vote
Michelle Steiner

External


Since: Jul 15, 2003
Posts: 4218



(Msg. 9) Posted: Wed Jul 23, 2008 9:25 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 3131



(Msg. 10) Posted: Wed Jul 23, 2008 9:25 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Jolly Roger wrote:

> In article ,
> Dave Balderstone wrote:
>
> > In article , Michelle
> > Steiner wrote:
> >
> > > In article ,
> > > Patrick Stadelmann wrote:
> > >
> > > > > words of time string of (current date)
> > > > >
> > > > > --> {"Jul", "23", "12", "01", "49", "PM"}
> > > >
> > > > Only the time is supposed to be returned in "time string" (which is
> > > > the case in 10.4.11). If you really get "Jul" and "23" in the output
> > > > of the command above in Leopard, submit a bug report.
> > >
> > > Yup, I really do. I'll get that bug report written up soonest.
> >
> > Check what scripting additions you have loaded. Here, OS X 10.5.4, I
> > get {"2", "15", "21", "PM"}.
>
> Peculiar... I get:
>
> {"3", "19", "50", "PM"}
>
> Big difference! What gives?

..
..
..

: D

--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
 >> Stay informed about: Problems with colons ':' 
Back to top
Login to vote
Dave Balderstone

External


Since: Mar 21, 2006
Posts: 1675



(Msg. 11) Posted: Wed Jul 23, 2008 9:25 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Dave Balderstone

External


Since: Mar 21, 2006
Posts: 1675



(Msg. 12) Posted: Wed Jul 23, 2008 9:25 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Dave Balderstone

External


Since: Mar 21, 2006
Posts: 1675



(Msg. 13) Posted: Wed Jul 23, 2008 9:25 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Michelle Steiner

External


Since: Jul 15, 2003
Posts: 4218



(Msg. 14) Posted: Wed Jul 23, 2008 9:25 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Jolly Roger

External


Since: Sep 09, 2006
Posts: 3131



(Msg. 15) Posted: Wed Jul 23, 2008 9:25 pm
Post subject: Re: Problems with colons ':' [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Dave Balderstone wrote:

> In article ,
> Jolly Roger wrote:
>
> > In article ,
> > Dave Balderstone wrote:
> >
> > > Check what scripting additions you have loaded. Here, OS X 10.5.4, I
> > > get {"2", "15", "21", "PM"}.
> >
> > Peculiar... I get:
> >
> > {"3", "19", "50", "PM"}
> >
> > Big difference! What gives?
>
> Did you run Software Update today? I just did, and now I get
>
> {"2", "59", "32", "PM"}

This is SO... STRANGE... Now I get:

{"7", "57", "32", "PM"}

It's almost as if the numbers change every single time!!!

..
..
..

*grin*

--
Send responses to the relevant news group rather than to me, as
E-mail sent to this address may be devoured by my very hungry SPAM
filter. Due to Google's refusal to prevent spammers from posting
messages through their servers, I often ignore posts from Google
Groups. Use a real news client if you want me to see your posts.

JR
 >> Stay informed about: Problems with colons ':' 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
AppleWorks and Spreadsheet problems - I'm having trouble with Appleworks spreadsheets. I've found how to change the default font of a WP document to what's needed, but am stuck on Spreadsheets and haven't looked at databases yet. I need to open all the AW version 5 documents, change the..

Scope or Inheritance Problems - I'm new to applescript and don't understand why I'm getting an error here. I have: tell application "Address Book" set my_s to "joe,sue" set my_l to my (split of my_s by ",") return my (join of my_l by ";") end...

Problems changing color profile via script - Hi, I was working on a small script that toggles the automatic brightness=20 adjustment on the PowerBook, and sets the appropriate color profile for=20 the monitor. While the automatic brightness works fine (it's a checkbox), I have=20 problems fiddlin...

Problems with TIFF scaling via Folder Actions -

Problems iterating through a loop (indesign script) - I have a script that generates a list of page numbers. I want to plug those page numbers onto the first page of a document (like a table of contents, but the text of this page needs to be edited independently, with the page numbers plugged in as the fina...
   Macintosh computer (Home) -> Apple Scripts All times are: Pacific Time (US & Canada)
Goto page 1, 2
Page 1 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]