Applescript: Check Effective ppi of document
Hi
I'm creating a script to check if I have any lo-res images in my document, using effective ppi (Yes I know about preflight) and just pop up a message. However I'm stuck on checking the results the following is returning…
[applescript]
tell application "Adobe InDesign CS6"
activate
tell document 1
set minimumRes to 100
set theEffectiveRes to {}
set theLink to every link
repeat with x from 1 to count of theLink
set the end of theEffectiveRes to effective ppi of parent of link x
end repeat
-- Here I need to check theEffectiveRes for any entires below minimumRes and display a message
end tell
end tell
log theEffectiveRes
[/applescript]
many thanks
Shane
Here's how I do it in JavaScript/ExtendScript:
effectivePpi = image.effectivePpi[0]; // grab the horizontal effective resolution
Regards,
Stephen
Similar Messages
-
Hey everyone! I would like to ask for some urgent help on Indesign + PDF print document subject.
I prepared a document for offset print (business cards 8,5cm width x 5,5cm height) and it turned out that the pictures were very rastered on the Proof. Like, you could see the raster dots on it.
I checked out my Indesign document again and I found out that the original ppi of the images was 762 and the effective ppi over 1000. I then realised that on Photoshop, I setted by mistake the pictures´s resolution for 300 pixel per cm instead of pixel per inchs!!
I changed that and they have now:
300 pixel per inch resolution
4cm width x 5cm height
and the pixel dimensions are: 472 px width x 591 pixel (height).
In the Indesign document, it appears now:
300 original ppi
between 300 and 400 effective ppi
472 px x 591 px dimensions
My question is, do you guys think I solved the problem that way or should I still change something before I sent it again to print?
The real dimensions of the pictures on the business card should be about 4cm width x 5cm height, so I decided to have them on Photoshop with that dimensions and 300 pixel per inch resolution, so that I don´t have to scale them much on Indesign. Did I do it right?
Thank you!The original psd file has, more precisely:
Image size: 14,8 cm width x 21 cm height
Resolution: 762 px / inch ( = 300px/cm )
Pixel dimensions: 4440 x 6300
Then, I changed the Resolution from 762 px / inch to 300 px / inch, and checked in the "resample image" option, which converted the Pixel dimensions into: 1748 x 1418
(Image size remained the same)
This file has good detail quality, it looks sharp.
Then, I drag the layer from this file to a new one, with the image size I need :
Image size: 4cm x 5cm
Resolution: 300 px / inch
Pixel dimensions: 472 x 591
Which makes me think of another question: Are these Pixel dimensions enough for print? Is this psd file good enough to place in Indesign and for print? -
Can "Actual PPI" and "Effective PPI" be extracted from InDesign?
A script that I may require, needs to reach inside InDesign and extract the Actual PPI and Effective PPI from certain images, and then process the images in Photoshop. Are those variables available to scripts?
Update: this applies for javascript, i don't actually know if you in Applescript would use the Open Library function, and then selecting Indesign.?
With Creative Suite comes a program called Adobe ExtendScript Toolkit (in CS3 and CS4 its ESTK 2).
Open this program and look under (for CS3) "Help" -> "Adobe Indesign CS3 Object Model" this is the Object Model Viewer, or in short OMV.
In there you will se all the available objects, methods and so on.
If f.ex. you will like to know how to get a reference of a image:
app.activeDocument.pages[0].images[0]; // will give you the first image of page 1 of the currently active document
In ESTK, click application, now you see all available objects for the app (activeDocument is one of them), click this and you will see that Data-Type is document. Click on the blue link document, now you see what objects are available for a document.
Have fun. -
Reading a large file? I created an Applescript to read an XML document...
I created an Applescript to read an XML document that had been exported from Final Cut Pro but it has trouble reading anything larger than a 1mb. Even 500kb takes a long time.
My code is most likely very ineffecient, but I have little experience with Applescript. The script reads an XML document one line at a time then breaks down each line into it's componenents and literally reads each character looking for "<name>" then it checks to see if "<reel>" came before it. It then records the name in between "<name>" and "</name>." Then I get my list of tapes that are in the Final Cut Pro project. Does anyone have any advice on how to improve this code?
property type_list : {"TEXT", "XML"}
property extension_list : {"TXT", "XML"}
on open these_items
tell application "Finder"
set my_file to these_items as string
set file_ref to (open for access my_file) read
close access file my_file
set AppleScript's text item delimiters to ASCII character 10
set new_list to every text item of file_ref
set lengthofarray to length of new_list
set h to 1
set shotcount to 0
set finalShots to {"You have ", "", " shots in your project."}
set finalListoftapes to {"Your list of tapes are:", ""}
repeat lengthofarray times
set i to 1
set x to 1
set switch to 0
set z to {""}
set reelName to {"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}
set letter_list to item h of new_list
set AppleScript's text item delimiters to ""
set final_list to every text item of letter_list
set lengthofletter_list to length of final_list
repeat lengthofletter_list times
if item i of final_list is "<"a" then
if item (i + 3) of final_list is "m" then
set letter_list2 to item (h - 1) of new_list
set final_list2 to every text item of letter_list2
set lengthofletter_list2 to length of final_list2
set j to 1
repeat lengthofletter_list2 times
if item j of final_list2 is "<" then
if item (j + 1) of final_list2 is "r" then
if item (j + 2) of final_list2 is "e" then
set x to (i + 6)
set y to 1
repeat while item 1 of z is not "<"
set item y of reelName to item x of final_list
set x to (x + 1)
set y to (y + 1)
set item 1 of z to item x of final_list as string
end repeat
if item 1 of reelName is not "" then
set displayText to reelName as string
set lengthofListoftapes to length of finalListoftapes
set shotcount to (shotcount + 1)
set k to 1
repeat lengthofListoftapes times
if item k of finalListoftapes is equal to displayText then
set switch to 1
end if
set k to (k + 1)
end repeat
if switch is 0 then
set finalListoftapes to (finalListoftapes & displayText)
set check to finalListoftapes as string
end if
set switch to 0
end if
end if
end if
end if
set j to (j + 1)
end repeat
end if
end if
end if
end if
set i to (i + 1)
end repeat
set h to (h + 1)
end repeat
set item 2 of finalShots to shotcount
set finalShots to finalShots as string
set AppleScript's text item delimiters to ASCII character 10
set finalListoftapes to finalListoftapes as string
set finalListoftapes to finalShots & (ASCII character 10) & (ASCII character 10) & finalListoftapes & (ASCII character 10) & (ASCII character 10) & "This list of tapes has been saved on your desktop."
set path_list to these_items as string
set filepath to path_list & "_listoffiles.txt"
set outputFile to (open for access file filepath with write permission)
write finalListoftapes to outputFile
close access outputFile
display dialog finalListoftapes
end tell
end openTry changing your approach - don't read it into an array, process it one line at a time. Obviously any approach where you have the whole file in memory is going to exceed memory at some size of the file.
-
Why effective PPI format change?
Hello there!
The effective ppi format change to "effective resolution", like 2356x1678px. I want back to real ppi, like 370ppi. How do i get back?Since I notice in your screen shot that you have two different images with non-proportional scaling, I might point out that you can use InDesign's Preflight panel to search for such images. In the IMAGES and OBJECTS section of the Preflight Profiles dialog box, check "Non-Proportional Scaling of Placed Object" in your preflight profile.
-
Effective ppi, where did you go?
Help! Since I upgraded from CS2 all the way to CS5 I'm having trouble finding some of my favourite features. I've spent a lot of time looking for the effective ppi information in the info tab.
The new info tab shows no resolution at all for eps-images. How can I figure out the effective ppi after I scale the images now???You could trigger live preflight for showing the effictive resolution of all images (EPS included!) if you use a very low threshold at max. resolution and even more lower value at min. resolution.
Downside:
it will slow down your operations tremendously and you have to single out your selected image you want to check…
Note 1: first edit the minimum resolution, then the maximum resolution field of your new preflight profile.
Note 2: don't try to set your minimum resolution values higher than your maximum resolution. Might crash your InDesign. In my case it was InDesign CS5.5 (7.5.2) that showed an alert window with an appropriate message and an ok button that I could not cancel even if I hit ok several times. I switched back to my browser to edit this message here and InDesign crashed in the background; (sometimes I try silly things just out of fun ).
Uwe -
Hello All,
My friend and I are working on an art book project being printed on a satin/matt 100lb artpaper. All images are full bleed 9.75 x 12.5. Our effective ppi's are ranging from 280 to 400. We were going to downssample them to 300 dpi on export in order to give the printer a document with all the same ppi. Do I need to upsize the ones that are 285? Can that be done in InDesign? I have originals on some of them that are larger if need be. Would you see the difference? Is there a reason to give a pdf to a printer with a consistant ppi? Would they change their lpi within a single job or just print it all at the lower one?
Thanks!Thanks Bob,
I think it is a pretty high end press. They do a lot of art books. Will they reduce the overall lpi for the book because of those few images that aren't 300 ppi? Or would they still use 150lpi or 200lpi on the whole thing? Or would they adjust the lpi for each image? -
Hi ,
im using psp cs2.
when placing images in the composition its easy to get lost and to have your images in a low resolution due to transformation. is there a way to see the effective ppi of a layer content? by effective ppi i mean the resolution of an image in perspective to its size.
Thanks
SOnce in the target image the placed item will have the resolution of that image.
The secret is to check the resolution of the item before adding it to the image.
If they are not the same, the item will appear to shrink or expand as it adopts the resolution of the target image -
Error while checking in and storing document in storage category
Dear Consultants,
When i am trying to save a document in storage category thru tcode cv02n, its giving me error:-
Error while checking in and storing document "c:/desktop/content.doc",
while there is no error in csadmin and OAC0 tcode repository is in running status
even output of
dbmcli db_enum
OK
SDB /sapdb/SDB/db 7.6.03.09 fast running
SDB /sapdb/SDB/db 7.6.03.09 quick offline
SDB /sapdb/SDB/db 7.6.03.09 slow offline
SDB /sapdb/SDB/db 7.6.03.09 test offline
URL "http://192.168.2.11:1090/ContentServer/ContentServer.dll?serverInfo"
output :-
serverType="SAP HTTP Content Server";serverVendorId="SAP AG";serverVersion="640";serverPatch="7";serverBuild="23";pVersion="0046";serverStatus="running";serverDate="2011-12-14";serverTime="10:01:44";startUpDate="2011-12-14";startUpTime="06:36:18";lastAccessDate="2011-12-14";lastAccessTime="09:57:59";
contRep="ZCONT_TEST";contRepStatus="data(0%) log(191655552%)";pVersion="0046";storageVersion="17";storage="SAPDB";buildLevel="1";contentStorageName="SDB";contentStorageHost="localhost";security="1";contRepDescription="test content repositry";driver="MaxDB";defaultDocProt="";
contRep="ZDMS_C1";contRepStatus="data(0%) log(191655552%)";pVersion="0046";storageVersion="17";storage="SAPDB";buildLevel="1";contentStorageName="SDB";contentStorageHost="hpsebdev1";security="1";contRepDescription="Database storage documents";driver="MaxDB";
Please Help regading the issue
Regards
Gagan Sharma
Basis ConsultantHi,
Please revisit your DMS configuration. May be something is missing out in the configuration.
Additionally you can retry to chekin by changing the following parameter
security = 0.
Hope this is useful.
Regards,
Deepak Kori -
HT4847 Can we check camera roll and documents data which we had back up byiphone ??
Can we check camera roll and documents data which we had back up byiphone ??
Consider it a loss... sorry
-
CProjects: Error when check in a big document (100 and more MB )
Hello,
when I try to check in a big document (in my case I made my own document which is about 100 MB) in cProjects the current cProject webpage turns to "This page could not be displayed...".
The exact path where I tried to check in the document is:
Projects -> Structure -> Documents -> New Document
To see if its an abap coding error I set a breakpoint at Web Dynpro Comp. "DPR_Document" View: "VI_UPLOADDETAIL" Method: "ONACTIONUPLOAD". Further I tried it in the Method "new_doc_create( )" of the component-controller.
The point is:
The abap coding which is called if you click on the "Check in"-button is NOT called if the document is about 100 or more MB. (I don't tried it with smaller documents e.g. 60 MB, but never mind about this because document with a size of 100 or more MB should work too.)
Furthermore I had a look at the trace file which can be found at SMICM -> Goto -> Trace File -> Display All. Every time I tried to check in such a big document three error messages appear there with the following content:
[Thr 1396738992] *** ERROR => request too big {00047108} [http_plg_mt.c 1969]
[Thr 1396738992] Address Offset REQUEST:
[Thr 1396738992]
[Thr 1396738992] 0x4d78895c 000000 504f5354 202f7361 702f6263 2f776562 POST /sap/bc/web
[Thr 1396738992] 0x4d78896c 000016 64796e70 726f2f73 61702f63 70726f6a dynpro/sap/cproj
[Thr 1396738992] 0x4d78897c 000032 65637473 2f3f7361 702d636f 6e746578 ects/?sap-contex
[Thr 1396738992] 0x4d78898c 000048 7469643d 53494425 xxxxxxxx xxxx2533 tid=SID%xxxxxx%3
[Thr 1396738992] 0x4d78899c 000064 xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxxxxxxxx%3
[Thr 1396738992] 0x4d7889ac 000080 6130314f 4e6d6551 61724445 767a6978 a01ONmeQarDEvzix
[Thr 1396738992] 0x4d7889bc 000096 525a7a45 48536763 58637863 76325738 RZzEHSgcXcxcv2W8
[Thr 1396738992] 0x4d7889cc 000112 45786f73 302d5835 6a2d4e45 57204854 Exos0-X5j-NEW HT
[Thr 1396738992] 0x4d7889dc 000128 54502f31 2e310d0a 61636365 70743a20 TP/1.1..accept:
[Thr 1396738992] 0x4d7889ec 000144 696d6167 652f6769 662c2069 6d616765 image/gif, image
[Thr 1396738992] 0x4d7889fc 000160 2f782d78 6269746d 61702c20 696d6167 /x-xbitmap, imag
[Thr 1396738992] 0x4d788a0c 000176 652f6a70 65672c20 696d6167 652f706a e/jpeg, image/pj
[Thr 1396738992] 0x4d788a1c 000192 7065672c 20617070 6c696361 74696f6e peg, application
[Thr 1396738992] 0x4d788a2c 000208 2f782d73 686f636b 77617665 2d666c61 /x-shockwave-fla
[Thr 1396738992] 0x4d788a3c 000224 73682c20 6170706c 69636174 696f6e2f sh, application/
[Thr 1396738992] 0x4d788a4c 000240 766e642e 6d732d65 7863656c 2c206170 vnd.ms-excel, ap
[Thr 1396738992]
[Thr 1398135728] Mon May 26 09:19:17 2008
[Thr 1398135728] *** ERROR => request too big {00087109} [http_plg_mt.c 1969]
[Thr 1398135728] Address Offset REQUEST:
[Thr 1398135728]
[Thr 1398135728] 0x4d7688ec 000000 504f5354 202f7361 702f6263 2f776562 POST /sap/bc/web
[Thr 1398135728] 0x4d7688fc 000016 64796e70 726f2f73 61702f63 70726f6a dynpro/sap/cproj
[Thr 1398135728] 0x4d76890c 000032 65637473 2f3f7361 702d636f 6e746578 ects/?sap-contex
[Thr 1398135728] 0x4d76891c 000048 7469643d 53494425 xxxxxxxx xxxx2533 tid=SID%xxxxxx%3
[Thr 1398135728] 0x4d76892c 000064 xxxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxxxxxxxx%3
[Thr 1398135728] 0x4d76893c 000080 6130314f 4e6d6551 61724445 767a6978 a01ONmeQarDEvzix
[Thr 1398135728] 0x4d76894c 000096 525a7a45 48536763 58637863 76325738 RZzEHSgcXcxcv2W8
[Thr 1398135728] 0x4d76895c 000112 45786f73 302d5835 6a2d4e45 57204854 Exos0-X5j-NEW HT
[Thr 1398135728] 0x4d76896c 000128 54502f31 2e310d0a 61636365 70743a20 TP/1.1..accept:
[Thr 1398135728] 0x4d76897c 000144 2a2f2a0d 0a726566 65726572 3a206874 */*..referer: ht
[Thr 1398135728] 0x4d76898c 000160 74703a2f xxxxxxxx xxxxxxxx 7764662e tp://xxxxxx.wdf.
[Thr 1398135728] 0x4d76899c 000176 7361702e 636f7270 3a353030 36362f73 sap.corp:50066/s
[Thr 1398135728] 0x4d7689ac 000192 61702f62 632f7765 6264796e 70726f2f ap/bc/webdynpro/
[Thr 1398135728] 0x4d7689bc 000208 7361702f 6370726f 6a656374 732f3f73 sap/cprojects/?s
[Thr 1398135728] 0x4d7689cc 000224 61702d63 6f6e7465 78746964 3d534944 ap-contextid=SID
[Thr 1398135728] 0x4d7689dc 000240 xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx %xxxxxx%xxxxxxxx
[Thr 1398135728]
[Thr 1395682224] Mon May 26 09:19:18 2008
[Thr 1395682224] *** ERROR => request too big {0008710c} [http_plg_mt.c 1969]
[Thr 1395682224] Address Offset REQUEST:
[Thr 1395682224]
[Thr 1395682224] 0x4d7688ec 000000 504f5354 202f7361 702f6263 2f776562 POST /sap/bc/web
[Thr 1395682224] 0x4d7688fc 000016 64796e70 726f2f73 61702f63 70726f6a dynpro/sap/cproj
[Thr 1395682224] 0x4d76890c 000032 65637473 2f3f7361 702d636f 6e746578 ects/?sap-contex
[Thr 1395682224] 0x4d76891c 000048 7469643d 53494425 xxxxxxxx xxxx2533 tid=SID%xxxxxx%3
[Thr 1395682224] 0x4d76892c 000064 xxxxxxxx xxxxxxxx xxxxxxxx xxxx2533 xxxxxxxxxxxxxx%3
[Thr 1395682224] 0x4d76893c 000080 6130314f 4e6d6551 61724445 767a6978 a01ONmeQarDEvzix
[Thr 1395682224] 0x4d76894c 000096 525a7a45 48536763 58637863 76325738 RZzEHSgcXcxcv2W8
[Thr 1395682224] 0x4d76895c 000112 45786f73 302d5835 6a2d4e45 57204854 Exos0-X5j-NEW HT
[Thr 1395682224] 0x4d76896c 000128 54502f31 2e310d0a 61636365 70743a20 TP/1.1..accept:
[Thr 1395682224] 0x4d76897c 000144 2a2f2a0d 0a726566 65726572 3a206874 */*..referer: ht
[Thr 1395682224] 0x4d76898c 000160 74703a2f 2fxxxxxx xxxxxxxx xxxx662e tp://xxxxxx.wdf.
[Thr 1395682224] 0x4d76899c 000176 7361702e 636f7270 3a353030 36362f73 sap.corp:50066/s
[Thr 1395682224] 0x4d7689ac 000192 61702f62 632f7765 6264796e 70726f2f ap/bc/webdynpro/
[Thr 1395682224] 0x4d7689bc 000208 7361702f 6370726f 6a656374 732f3f73 sap/cprojects/?s
[Thr 1395682224] 0x4d7689cc 000224 61702d63 6f6e7465 78746964 3d534944 ap-contextid=SID
[Thr 1395682224] 0x4d7689dc 000240 2533xxxx xxxxxxxx 33xxxxxx xxxxxxxx %xxxxxx%3xxxxxxx
[Thr 1395682224]
As you can see this error sais that the request is too big. A look into the coding of this cProjects webpage (where you can check in documents (look above)) the document is sent with the http method POST. Usually every webserver has an option where you can restrict the size for uploading files. But in that case the won't be an error out of a piece of c-coding (-> http_plg_mt.c).
Has anybody have an idea about a solution?
Edited by: Johannes Gilbert on May 26, 2008 12:25 PMHi,
this is handled by the profile parameters of the R/3 System. Look at
icm/HTTP/max_request_size_KB or something like this.
Best regards, Stefan -
Check number on payment document number
Hi,
I made vendor payment through F-53. Document number generate: 1700000043 & 1700000044
Now i printed check through FBZ5 and drew a manual check through FCH5 for each document mentioned above.
Now i went to FB03 and view the above two documents. But i am unable to see the check number in 'assignment field' in payment document neither in print preview nor in entry view.
Let me know in which field i can see check number in payment document. Also let me know if i want to do any change in layout of document or will it be developement ?HI Deepak,
When you issue a check manually, then you have to update the check manually in the SAP System.
Goto FCH5, give your clearing document number and then give the check number.
Now the payment is lindked to a check in the SAP System.
Now if you goto FB03 and display the clearing document, From the menu select Environment==>Check Information, now you will be able to see the check number and other details.
Hope this helps you....
Regards,
Sreekanth.... -
F110- Check Sort Based on document number
Hi All,
We are using the program RFFOUS_C to print check when we are doing the payment run F110.
Presently, checks are sorted as per vendor name (Name 1) while printing. We need to print check sorted based on document (Invoice) number, field BELNR. SO, that checks are printed in the same order as we have entered invoices.
But the field BELNR field for sorting is not available in the application REGUH (Correspondence), which is a natural way to check print sorting. (In customizing FBZP, "Payment method in Company Code" form data, Sorting of corrpondence)
Is there a way, we can sort check based on the invoice number (BELNR). .
Thanks
Ron
Edited by: Ron on Jan 7, 2010 1:34 PMHey Ron,
In Free Selection tab on F110 tcode, Pick Field name as BKPF-BELNR (Document number). Now create the proposal and do the payment run.
Thanks
Raghuram -
How to check whether follow on document is created for sc or po,is there any table or fm available?
Hello Venu
Check FM: BBP_PD_SC_GETDETAIL and BBP_PD_PO_GETDETAIL table E_HEADER_REL
Check this: SRM Shopping cart and PO tables link
Regards -
Script for 'Check Links Before Opening Document' preference
I'm trying to find the VB script for changing the "Check Links Before Opening Document" checkbox on the File Handling panel in the Preferences dialog? I haven't found any documentation referring to the Links items on that panel.
BobThanks for the info.
Was there a document you pulled this from?
I have an old document from CS2 days that is invaluable for providing a detailed list of available script methods and properties. Obviously things that have been added in subsequent InDesign releases aren't in this document. Later InDesign CS releases offer script SDKs that contain helpful sample scripts but I don't find a detailed summary similar to one from CS2. Have I just not found them? Or how does one find the script method/property for things not contained in the sample scripts?
Maybe you are looking for
-
How do I move Documents folder?
I am trying to free space on my old Macbook Pro. My friend created a partition where I am moving most of my files to, including my pictures, downloads and Dropbox. I would like to move my Documents folder too as there is plenty of space remaining in
-
Safari not renedering graphics (jpegs) correctly
Issue popped up in the past couple of days on my Powerbook 15inch. Not updated or loaded anything in about 4 weeks. Safari is loading/rendering icons and graphics really badly. Everything looks like it is in low resolution. Ironically, the Apple web
-
In BO v5.1.7 , Is there a way that we can find out the number of users
BO Version : 5.1.7 Hi There, I am new to Business Objects and I am having a task to complete. I need to find out how many users are using the Business Objects in our older version. I understand in BOBJ XI there is a provision in CMC to execute a quer
-
Search results not showing certain apps in appstore!!??
Hello, When I search for a certain app/game in the app store on my ipad, it does not come up in the results.. Have encountered this several times so far, who knows how long it has been like this.. PLEASE help? I have done the simple little obvious t
-
Re: Last 12 Months Rolling
Dear All, I am using OBIEE 11g, Can any one help me pls.. i have two prompts like Year and Monthname.. For example: User selects 2013 June report has to display last 12 months from selected month, that i achieved using supporter report. (ref:: Last N