Jump to content

jaladuvar

Member
  • Posts

    17
  • Joined

  • Last visited

Posts posted by jaladuvar

  1. I'm using a lot "toggle Alfred" to launch an app after keying in some letters...but I find the strange behavior:

    When I want to launch MacUpdater the first time nothing visible happens (the app is not listed as running) and the second time the app starts (is in the dock) and the window opens. This "second" opening fix seems to be only working once.If I quit the app and want to relaunch it later the same way, I've got to "launch" it twice again.

    Other apps launch first time...

    Any fix or is it from Macupdater's end ?

    Thanks for advice.

  2. The title says it all: I've got a few workflows that make use of "Large Type"  output, whatever the setting I choose for fading, nothing happens. I have to click the screen besides the Large Type window to have it closed. Alfred 3 didn't behave like that.

    Not sure it's a bug because not reported anywhere ( I looked for this), but annoying...

    OS X Mojave, Workbook Pro 13,

    Thanks for solving it f bug; for pointing me where the problem is if not bug...

  3. Doesn't wok means that the script, which uses instructions that are specific to the Satimage libraries, fails.

    It's a script that splits, into fields of a csv files, lines copied from an Amex account statement.

    Simplifies version below that works in High Sierra (but one has to load the Satimage Smile libraries because the regex instructions use this)

    links: 

    Satimage Smile

     

    Smile Osax

     

    workflow and the expected output in dropbox zip:

     

    Just found out that it woeks if I add the two lines at the beginning of the script

     

    use scripting additions
    use application "SatimageOSAX"

     

    These were not needed in High Sierra

     

     

     

     

     

     

     

     

     

  4. I'm having workflows that include running applescripts using satimage libraries. These used to be "enbedded" in the scripting additions that no longer work as such with Mojave.
    The solution is to load a SatimageOSAX application and to call "use application 'SatimageOSAX' "in the script.

    This works fine outside of Alfred workflows but adding the line "use application 'SatimageOSAX' " in the script in the workflow does'nt seem to work. Why is that ?

    See screen capture attached

     

    Thanks for any solution...

     

    Capture d’écran 2018-10-20 à 09.12.39.png

  5. I must by stupid.

    The Visa example I supplied is the following and all the lines were processed with the regex in one go

    20/06/2017     1606/JARDIN DU CAP 06 SAINT LAURENT    -33,80 EUR
     19/06/2017     1606/LA POSTE BOUTIQU 75 PARIS CEDEX 15    -14,50 EUR
     19/06/2017     1606/ESSFLOREALYG820 83 FREJUS    -61,02 EUR

     

    the structure of the Amex is as follows (I give only three "extended" lines and I keep the "internet" formatting ) and this does not work, but in the first instance I never specify that the text has to be splitted and it works

           
    14 juin	  ITUNES.COM/BILL LUXEMBURG
    Enregistrée le : 14 juin 
    INTERNET TRANSACTION
    21,99 EUR	 
    16 juin	  APPLE ONLINE EURO HOLLYHILL
    Enregistrée le : 17 juin
     	89,95 EUR
    17 juin	  AMAZON EU SARL GUYANCOURT
    Enregistrée le : 18 juin
     	16,80 EUR

     

  6. On 24/06/2017 at 4:01 PM, deanishe said:

     

    PHP/Python etc. all support regular expressions.

     

     

    They are all passed into the script, yes. But your regular expressions will all only recognise one line.

     

    I only face issue with the Amex card when the regex addresses several lines in the text (ie you'll find \n in the regex), for Visa, the text comprises several lines but the regex handles only one as it does not contain any  \n. Is this what you mean ?

    I've put the regex in an Applescript in the workflow and it works (but I will have to change the complete architecture of the workflow).

     

    I tried to get the different codes supplied through regexmatch (once established that the regex was working), but did not manage to get the relevant scripts to work...:wub:

  7. Thank you, it somewhat works with a few adjustments (only for Visa, as I have to refine the regex for other cards). Once I finalise it I will post it there for your final comments.

    I tried parsing the lines in the HTML files with php or like but for a single "expense" sometimes the number of lines changes end only regex will make the trick. And I found Applescript (at the beginning) easier forme to handle.

    When I copy a multi lines bank statement I get them all handled at once... 

     

     

    Largeview.png

  8. Basically I'm copying account  statement of different Bank cards (amex, visa, or big shops ) that need to be transformed into cvs files In ordre to import them into a personnel finance management software ( iCompta )

    For a given card a set of regex replacement does the trick, but it differs whith each  type of cards.

    i coule havé a Workflow for each card but I'd rather have one where I specify the card while it's running ( when copying the lines of the bank statement) and set the proper regex and other relevant variables ( In total 4 variables have  to be changed ) then.

    Processing of the clipboard after copying

    1/ regex

    2/ replacement $1 etc differs

     

    saving to file

     

    3/ first Line ( column names and number ) of the file

    4/ name of the file

     

    I will attach a workflow later as I'm writing this on a iPad

  9. Is there a way to set values for a set of several variables inside an Applescript in a workflow ? I'm using a choose from list that induces different values for regex  replacements and would like to set these within the applescript as later on it's not easy to set different branches according to the outcome of the choice (or I don't find this easy)

×
×
  • Create New...