• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Move based on content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Move based on content


  • Subject: Re: Move based on content
  • From: Jan Bultereys <email@hidden>
  • Date: Thu, 04 Jan 2007 14:45:31 +0100
  • Thread-topic: Move based on content

Title: Re: Move based on content
Well to be honest, I am not sure what’s the best way to approach this...

Opening a pdf-file to look for something sounds pretty unstable....
Maybe I have to generate a label when the pdf gets created and this info can be used to identify something in applescript ?
Maybe I have to add something in the name when the pdf gets created....some automatic identifier when the file gets created... ?

Actualy my point is how to make a pdf so applescript can do something with it...

Any additional comments are much appreciated
jan


From: Rob Stott <email@hidden>
Date: Thu, 4 Jan 2007 13:28:28 +0000
To: AppleScript Users <email@hidden>
Subject: Re: Move based on content


On 4 Jan 2007, at 11:30, Jan Bultereys wrote:

I want to move pdf-files based on something specific IN the pdf-file (content).
 Let’s say I have something in the baseline like:
         MOVE TO GROUP 1
     X   MOVE TO GROUP 2
         MOVE TO GROUP 3
 
 The user puts an X before “MOVE TO GROUP 2”.... Applescript will notice this and an action will take place.



I'm not exactly sure what you mean by 'in the baseline'. 

If you mean 'in a form field' then you can get at that by using a 'do script' to pass a chunk of _javascript_ to the PDF and return <whatever> to your AppleScript. It's a bit messy, but it works.

If you mean in the actual text of the PDF then probably the way I'd approach it would be to open the PDF in Acrobat, export as text and parse the text. How successful this is will depend on how the PDF was made. There may be a better way that I'm not aware of.

My general advice would be to have a look at the _javascript_ guide for Acrobat - you can do heaps more with it than AppleScript (which is pretty annoying) and pass your results back to AppleScript if necessary

Hope that's of some help
Rob


_______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden
 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Move based on content (From: Rob Stott <email@hidden>)

  • Prev by Date: Re: Move based on content
  • Next by Date: Re: Apply script to subfolders, save file to new folder
  • Previous by thread: Re: Move based on content
  • Next by thread: Re: Apply script to subfolders, save file to new folder
  • Index(es):
    • Date
    • Thread