Re: String manipulation
Re: String manipulation
- Subject: Re: String manipulation
- From: Iurista GmbH <email@hidden>
- Date: Fri, 07 Jun 2013 19:36:55 +0200
Am 07.06.2013 um 08.48 schrieb Christopher Stone:
> On Jun 06, 2013, at 17:48, Iurista GmbH <email@hidden> wrote:
>> Thanks for that feedback, Christopher.
>> Unfortunately, this script does nothing at all :-(
> ______________________________________________________________________
>
> Hey Rudolf,
>
> Hmm...
>
> Okay. The feedback you sent shows that you have some dates that are not of the form dd.mm.yy but of the form d.mm.yy, so that means you might have some that are d.m.yy. That makes a difference, and Thomas' regex is a pretty good way to handle it.
>
> I also didn't notice the first time around that you didn't want to retain the '.' separators. I fixed this in the script below. It now produces 130601 for the date instead of 13.06.01
>
> I also see there's a bug in the Satimage.osax when joining single-item lists. I've worked around that too.
>
>> Here's the results, step by step (the filename is "9.12.89 BUPO.cwk" extension is hidden)
>
> Okay. I've made you a movie (available for a week from today):
>
> The movie is slightly off, because I made it before noticing the regex needed to be changed - but hopefully it will still be of value.
>
> Let me know if you still have problems.
>
> --
> Best Regards,
> Chris
Wow, Chris, many thanks for your work.
I looked at the movie, and it's incredible, how much work you've invested in that thing. When you pass next time in Switzerland you'll get a few beers...promised.
And yes, it works, just within the limitations a have noted in my answer to the email of Thomas.
What's left now is to trim first all this fancy names to a pattern like " some text xx.xx.xx some text" and then apply your script. But this should be feasable...
Thanks a lot
Rudolf
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden