Welcome Guest.   Make a donation to an author on the site October 22, 2014, 11:39:35 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2014! Download dozens of custom programs!
   
  Forum Home Thread Marks Chat! Downloads Search Login Register  
  Show Posts
      View this member's profile 
      donate to someone Donate to this member 
Pages: [1]
1  DonationCoder.com Software / Finished Programs / Re: DONE: Using AHK and PDFTK to combine daily pdf's on: November 15, 2012, 10:36:09 AM
Good grief you guys make it look so easy!

Thank you so much that was driving me nuts!

 Thmbsup
2  DonationCoder.com Software / Finished Programs / DONE: Using AHK and PDFTK to combine daily pdf's on: November 14, 2012, 05:40:21 PM
Hello,

I need to come up with a way of combining daily extracted pdfs in the proper order but am having problems with the number of different publications.

Our naming convention is :

pub  date     section
--------------------  
MM_111412_A01.pdf
MM_111412_A02.pdf
MM_111412_B01.pdf
MC_111412_A01.pdf
WR_111412_A01.pdf

I can do this for one pub easily i.e.

Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]
  1. SetWorkingDir, %A_ScriptDir%
  2. pub = MM
  3.  
  4. dest = D:\DATA\archives\hot\
  5. formattime, date, MMddyy, MMddyy
  6.  
  7. filename1 = %pub%_%date%_*.pdf
  8.  
  9. ifexist %filename1%
  10. Runwait %comspec% /c pdftk %filename1% cat output %dest%EA_%date%.pdf

But with 7 different pubs, some of which may or may not appear on a daily basis, I am stuck.

Here's what I came up with but it is not getting every pub and some pages are repeating.  I am trying but am an amateur N00B smiley
Also, the pub order is as seen top to bottom.

Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]
  1. SetWorkingDir, %A_ScriptDir%
  2. pub = MM
  3. pub2 = MC
  4. pub3 = FE
  5. pub4 = CS
  6. pub5 = RE
  7. pub6 = VL
  8. pub7 = WR
  9.  
  10. dest = D:\DATA\archives\hot\
  11. formattime, date, MMddyy, MMddyy
  12.  
  13. filename1 = %pub%_%date%_*.pdf
  14. filename2 = %pub2%_%date%_*.pdf
  15. filename3 = %pub3%_%date%_*.pdf
  16. filename4 = %pub4%_%date%_*.pdf
  17. filename5 = %pub5%_%date%_*.pdf
  18. filename6 = %pub6%_%date%_*.pdf
  19. filename7 = %pub7%_%date%_*.pdf
  20.  
  21. FileList =
  22. Loop, *_%date%_*.pdf
  23. {
  24. FileList = %FileList%%A_LoopFileName%`n
  25.  
  26. Runwait %comspec% /c pdftk %filename1% %A_LoopFileName% cat output MTR_%date%.pdf
  27. }
Can anyone help?

3  DonationCoder.com Software / Unfinished Requests / Re: Upload files listed in text file on: August 23, 2010, 08:59:27 AM
Yes, it's basically an xml file that changes daily.  It identifies jpgs to look for, and I'd like to upload only the files listed in that xml file.  So yes the images listed would change daily.
4  DonationCoder.com Software / Unfinished Requests / UNFINISHED: Upload files listed in text file on: August 19, 2010, 01:45:37 PM
I've tried tons of different google searches but I can't find anyone that's tried this so here goes.

I would like a script that would read a text/xml file with content like this:

123.jpg
234.jpg
555.jpg
aaa.jpg
atr.jpg
etc.jpg

and upload via FTP the listed files from a set folder.
Possible?   Wink
5  DonationCoder.com Software / Post New Requests Here / IDEA: Javascript to pull images into InDesign - convert applescript? on: July 29, 2009, 03:59:29 PM
A colleague developed this applescript to import comics into a template as seen below and I've been reading up on Javascript trying to figure out how to convert this for use in our windows environment:

--This script will open an Adobe Indesign page for the Comics and flow all comics files for the selected date.
set displayString to "Please Enter Year"
set DYear to (year of (current date))
set response to display dialog displayString default answer DYear
set theNumber to (text returned of response) as number
set DYear to text returned of response
set displayString to "Please Enter Month"
set Dmonth to do shell script "date '+%m'"
set response to display dialog displayString default answer Dmonth
set theNumber to (text returned of response) as number
set Dmonth to text returned of response
set displayString to "Please Enter Day"
set Dday to (day of (current date)) + 1
set response to display dialog displayString default answer Dday
set theNumber to (text returned of response) as number
set Dday to text returned of response
tell application "Adobe InDesign CS4"
set comic1 to "macintosh Hd:users:marshall:documents:comics:" & DYear & Dmonth & Dday & "pzjud-a.tif"
set comic2 to "macintosh hd:users:marshall:documents:comics:fct" & DYear & Dmonth & Dday & ".tif"
set comic3 to "macintosh hd:users:marshall:documents:comics:det" & DYear & Dmonth & Dday & ".tif"
set comic4 to "Macintosh HD:users:marshall:documents:comics:bbt" & DYear & Dmonth & Dday & ".tif"
set comic5 to "Macintosh HD:users:marshall:documents:comics:blt" & DYear & Dmonth & Dday & ".tif"
set mydoc to open "Macintosh HD:users:marshall:documents:comix:GGDailyBlank.indd"
tell mydoc
tell page 1
set myrect1 to page item named "image1"
set myrect2 to page item named "image2"
set myrect3 to page item named "image3"
set myrect4 to page item named "image4"
set myrect5 to page item named "image5"
tell myrect1
set myGraphic to place (comic1 as string)
fit myrect1 given content to frame
end tell
tell myrect2
set myGraphic to place (comic2 as string)
fit myrect2 given content to frame
end tell
tell myrect3
set myGraphic to place (comic3 as string)
fit myrect3 given content to frame
end tell
tell myrect4
set myGraphic to place (comic4 as string)
fit myrect4 given content to frame
end tell
tell myrect5
set myGraphic to place (comic5 as string)
fit myrect5 given content to frame
end tell
end tell
end tell

-------------------------------------------------------

Any tips or ideas to help get me started with this?  Most of the tutorials I'm reading deal with text and not images...

Thanks for any help!

 

Doug
6  DonationCoder.com Software / Post New Requests Here / Re: IDEA: Alpha list of files with Numeric drop down to select and display on: January 31, 2009, 11:57:43 AM
skrommel,

Wow, fantastic!

Only problem is that it only loads the first pdf file for some reason and does not load the others at all?   A minor fix?

anyway I LOVE the implementation!
7  DonationCoder.com Software / Post New Requests Here / IDEA: Alpha list of files with Numeric drop down to select and display on: January 30, 2009, 09:33:43 PM
I play guitar at church and would like to be able to select a song order from a list of .pdf files, hit submit and have the songs display in correct order while I page down from one song to the next.

[attach]

The list of pdf files is in a single directory online.  I'm thinking php to do this?
I would like to be able to just drop new pdfs in the folder via ftp and have them listed out on the fly if possible.

The image is an idea of what I'm thinking it could look like...
8  DonationCoder.com Software / Post New Requests Here / Re: Autosave for QuarkXPress 4.x on: December 09, 2008, 10:33:18 AM
Never did get a solution.  sry..   Sad
9  DonationCoder.com Software / Post New Requests Here / Autosave for QuarkXPress 4.x on: October 22, 2007, 11:19:02 AM
This may be impossible, but I work at a newspaper and we use Quark Xpress 4.11 throughout the building. Page designers are notorious for having a ton of open documents in Quark at all times. Then when quark crashes they lose a ton of work and we (I.T.) get the blame.

Quark's Ctrl-S saves the current document, not the underlying ones. As far as I can tell there is no "save all" command. I'd love to save all their docs every 15 mins or so.

We constantly tell them to save early and often, but.. well people are lazy.

Anyone out there have any ideas?

Also need to mention that the built-in autosave function in Quark saves the document locally to the C drive and breaks our database link. It should save to the network but doesn't and breaks the reporters queues.

Attached is an AHK script I wrote but it is pretty intrusive in that it freezes all input while saving and crashes Quark if it is flowing text when it activates.

Thanks!

Pages: [1]
DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.053s | Server load: 0.21 ]