I have a little script that was written by the legendary Steve Mills
(well I helped a little. a very little :) )
What the script does is when you "Save" a file it also creates a PDF and
uploads specific destination on a network. And its all handled in the
background.
My shop uses it for proofing ads to the sales people. It works GREAT!!
BUT ...now our sale staff would their own individual proofing folders on
the network.
Sooooooooo i need figure out how to make this happen.
Conceptually ...I am thinking that on Save the user would be prompted to
select a salespersons name from a list. once a section had been made the
user would hit "ok"...a pdf would be created (as in the original script)
and it would be uploaded to the specified folder.
Unfortunately i haven't written or modified a script in years and not
sure what to do :(
Sent from iCloud's ridiculous UI, so, sorry about the formatting
Hey Rick!
Putting an extra "choose your name" dialog in the middle of a save operation is a little hacky if there's no other way to get that info, so let's figure out if it can be done automatically. Will each sales person be running it from their own computer? And do they run from the own OS X user? If so, the script could easily grab the user name, match that against a list of {user name, folder name} pairs to get the name of their folder on the server.
If not, the existing "Send proof?" dialog could be replaced with a dialog that lets the user choose their name, and still have Cancel and OK buttons.
Sent from iCloud's ridiculous UI, so, sorry about the formatting
Yay Steve! I knew if i said your name 3x you would appear!!
The above might be the best short term answer.
Here is the problem: The salespeople do not know when their PDF proofs are uploaded. And I am trying to come up with notification system that won't involve much interaction.
According to my IT staff if i can get the PDFproofs to individual folders (setup for each sales person).... they will handle the notification process.
property PDFPath : "PDFProofs:"
property lastChosenName : ""
using terms from application "MultiAd Creator Pro"
on saved theDoc
--Set names of folders on output server to sales names here:
set salesNames to {"Andy", "Barney", "Opie"}
set rep to choose from list salesNames with title "Send Proof?" with prompt "Select output folder name." default items {lastChosenName} OK button name "Yes" cancel button name "No" without multiple selections allowed and empty selection allowed
if rep is not false then
set lastChosenName to item 1 of rep
set fileName to name of theDoc
set destFolder to PDFPath
--Trim off .crtr extension if it has one:
if fileName ends with ".crtr" then
set sd to AppleScript's text item delimiters
set AppleScript's text item delimiters to {"."}
set fileName to (text items 1 thru -2 of fileName) as text
set AppleScript's text item delimiters to sd
end if
tell application "MultiAd Creator Pro"
export PDF current spread of theDoc saving in (destFolder & lastChosenName & ":" & fileName & ".pdf") print order user order export method composite output color space CMYK stand in resolution 300 black and white compression use zip color image compression use JPEG quality 80 with embed no base 14 fonts, use doc size, binary encoding and compress text and line art without print as spreads, crop marks, registration marks, color bars, document notes, plate information, text blocks only and presentation mode
end tell
tell application "Finder"
activate
tell application "MultiAd Creator Pro"
activate
end tell
end tell
end if
end saved
end using terms from
Yeah fingers crossed. I tested alternatives to MC and there is nothing
on the market that works like MC. I even developed a couple of scripts
for InDesign (aka PageMaker) that replicated some Creator functionality
and it still stinks. How InDesign ever became the "industry standard"..i
will never know.
how would i set it so that it would trim the .crtr if it has one (which
it is doingg now)
keep the order number
and delete all the other items
the result would be 1953975 with the resulting pdf file name "1953975.pdf"
--Trim off .crtr extension if it has one:
if fileName ends with ".crtr" then
set sd to AppleScript's text item delimiters
set AppleScript's text item delimiters to {"."}
set fileName to (text items 1 thru -2 of fileName) as text
set AppleScript's text item delimiters to sd
end if
Tell me about it. It's horrible! Graphics have to be in a box? Dumb. No dialogs for setting char/par attributes to selected text all at once? Dumb. And the AppleScript dictionary and implementation is a joke. My job now involves scripting for InDesign. There are so many things it can't do that you can do from the UI.
Put this hunk after the above hunk:
set sd to AppleScript's text item delimitersset AppleScript's text item delimiters to {" "}set fileName to last text item of fileNameset AppleScript's text item delimiters to sd
Sent from iCloud's ridiculous UI, so, sorry about the formatting
would another IF statement work??
if fileName is not number
see that is why you are a script writer and i am a graphic artist :)
yes the creation of a new script worked!!
why was it so fickle?? multi-ad? apple script?
one of the other modify scripts didnt work on two separate computers
until the computer was restarted.
On Jan 13, 2017, at 01:07 PM, Rick Gaskin <rga...@wdt.net> wrote:I have a little script that was written by the legendary Steve Mills
(well I helped a little. a very little :) )
What the script does is when you "Save" a file it also creates a PDF and
uploads specific destination on a network. And its all handled in the
background.
My shop uses it for proofing ads to the sales people. It works GREAT!!
BUT ...now our sale staff would their own individual proofing folders on
the network.
Sooooooooo i need figure out how to make this happen.
Conceptually ...I am thinking that on Save the user would be prompted to
select a salespersons name from a list. once a section had been made the
user would hit "ok"...a pdf would be created (as in the original script)
and it would be uploaded to the specified folder.
Unfortunately i haven't written or modified a script in years and not
sure what to do :(Hey Rick!Putting an extra "choose your name" dialog in the middle of a save operation is a little hacky if there's no other way to get that info, so let's figure out if it can be done automatically. Will each sales person be running it from their own computer? And do they run from the own OS X user? If so, the script could easily grab the user name, match that against a list of {user name, folder name} pairs to get the name of their folder on the server.If not, the existing "Send proof?" dialog could be replaced with a dialog that lets the user choose their name, and still have Cancel and OK buttons.
I use to communicate with Steve all the time years but lost email. Anyone know how to get a hold of him because I need his expert analysis of why Creator SAVE function no longer works in Sierra 10.12.6 when saving to server. No problems saving to your own computer.