Re: Need some help with multiple search-replace Apple script

2020-12-16 Thread Christopher Stone
On 12/15/2020, at 00:42, Mathias mailto:math...@lightlabs.se>> wrote: > Below are three example rows the way they work on Android, followed by their > equivalent IOS counterparts. > > Switch account > Automatic check-in to %1$s > Choose location > > > "switch_header" = "Switch account"; > "auto

Re: Need some help with multiple search-replace Apple script

2020-12-14 Thread Mathias
Hi Chris, sure! Below are three example rows the way they work on Android, followed by their equivalent IOS counterparts. Switch account Automatic check-in to %1$s Choose location "switch_header" = "Switch account"; "automaticCheckinTo" = "Automatic check-in to %@"; "shortcut_subtitle_checkin"

Re: Need some help with multiple search-replace Apple script

2020-12-14 Thread Christopher Stone
On 12/14/2020, at 07:38, Mathias mailto:math...@lightlabs.se>> wrote: > … Isn't the script expecting every row to begin with "login_infolabel" as it > is written right now? The variable names in the files are different on every > row. Or am i missing something obvious? Hey Mathias, Please prov

Re: Need some help with multiple search-replace Apple script

2020-12-14 Thread Mathias
Hi, work is crazy, so believe it or not, with all else going on as you know, I haven't had time to look at this until now.. Checking the Perl script, i have one question - (since my perl knowledge is very limited). Isn't the script expecting every row to begin with "login_infolabel" as it is wr

Re: Need some help with multiple search-replace Apple script

2020-10-29 Thread Mathias
Guys, thanks a bunch for great feedback! I will take your stuff and make it work i'm sure. If not i'll bother you here again! :) The reason for me taking AppleScript is that i was doing stuff before i had BBEdit and i kinda knew it, that's all. On Thursday, October 15, 2020 at 3:26:55 PM UTC+2

Re: Need some help with multiple search-replace Apple script

2020-10-15 Thread John Delacour
On 13 Oct 2020, at 06:54, Mathias af Jochnick wrote: > i'm trying to make 2 scripts to convert between IOS and Android i18n formats > to work. I've gotten Android -> IOS to work, but the other way around is a > challenge. > > Basically, for each row in a file i want to convert > "login_infoL

Re: Need some help with multiple search-replace Apple script

2020-10-13 Thread jj
Mathias, It would be way simpler to just use the "Find and Replace" window using the below regular expressions and replacement strings. In the find window check the "Grep" and "Wrap around" checkboxes and leave the other checkboxes unchecked. If it works for your purpose in the "Find" window,

Need some help with multiple search-replace Apple script

2020-10-13 Thread Mathias af Jochnick
Hi there, i'm trying to make 2 scripts to convert between IOS and Android i18n formats to work. I've gotten Android -> IOS to work, but the other way around is a challenge. Basically, for each row in a file i want to convert *"login_infoLabel" = "Do you need help? Press here.”;* to *Do you need