Messages - schnarkle [ switch to compact view ]

Pages: prev1 [2] 3next
6
Unfinished Requests / UNFINISHED: Upload files listed in text file
« on: August 19, 2010, 01:45 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?   ;)

7
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

8
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!

9
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.

sample.jpg

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...

10
Post New Requests Here / Re: Autosave for QuarkXPress 4.x
« on: December 09, 2008, 10:33 AM »
Never did get a solution.  sry..   :(

Pages: prev1 [2] 3next
Go to full version