Page 1 of 1

Apple invoice --> extracting the Ordernumer failed

PostPosted: Mon Jan 16, 2017 10:37 am
by HaubenTaucher
Hej Forum,

since days i tried - without success - to extract the 10-digit-Ordernumber with
"Content matches" from my invoice i have gotten from Apple/Apple-Store.

Does someone tried that or can help me to catch the Ordernumber out of that invoice to be possible to add that to a filename?

I tried "a1a1a1a1a1a1a1a1a1a1" with Hazel but that does´nt work. The Ordernumber is allways in capitalised letters.
Within are one or two Numbers in a different position changing from invoice to invoice.

Thanks for feedback....
Any suggustions are welcome...

Rolf

Re: Apple invoice --> extracting the Ordernumer failed

PostPosted: Mon Jan 16, 2017 3:03 pm
by Mr_Noodle
Try previewing your rule: https://www.noodlesoft.com/kb/previewing-your-rule/

If you click on the badge indicating whether a condition matches or not, it will show you the value for that attribute. So you can view the file contents as Hazel sees them and adjust accordingly.

Re: Apple invoice --> extracting the Ordernumer failed

PostPosted: Mon Jan 16, 2017 3:48 pm
by HaubenTaucher
Hej Mr_Noodle,
thanks for your answer...

I knew that preview function and i got a green hook. But the result isn´t what i need.... But everything i did ...nothing matched.

Here are some screenshots from what i did... What i need to capture is the green highlightend Word(Number)

https://www.dropbox.com/s/6lbwobv2l7iehzx/Capto_Capture%202017-01-16_08-22-06_PM.png?dl=0
https://www.dropbox.com/s/ctx4ixvwrwc9qo4/Capto_Capture%202017-01-16_08-22-36_PM.png?dl=0
https://www.dropbox.com/s/qg30t05sqwyll1p/Capto_Capture%202017-01-16_08-22-56_PM.png?dl=0
https://www.dropbox.com/s/7qzv50y1jx6iu98/Capto_Capture%202017-01-16_08-23-57_PM.png?dl=0

Any idea to that?
Maybe Apple protected the pdf-invoiceFile?

Thanks for help.

Re: Apple invoice --> extracting the Ordernumer failed

PostPosted: Tue Jan 17, 2017 1:05 pm
by Mr_Noodle
The problem here is that it is matching any sequence of 10 letters/digits. You'll need to do more to isolate the specific one you want. Try matching text before or after the number.

Also, you need to use a custom text attribute if you want to extract it for later use. If you do this and then use the preview, it will show you the actual text captured so you can fine tune the exact 10 letters you want to grab.