Catch scaling command in CS2
Hello everyone.
I've faced problem in InDesign CS2.
The way to catch scaling command through observer, which is valid for CS3, doesn't work on CS2.
I need to catch kScaleChangedMessage in CS2, but through protocol IID_ITRANSFORM_DOCUMENT this message doesn't come.
Which protocol I need to use is CS2 in order to catch this message?
try this: http://forums.adobe.com/thread/375776?tstart=0
Similar Messages
-
Catch kTransformPageItemsCmdBoss command
Hello everyone.
Can't get how to sign on command handling:
I've object,
CMyShape: public CGraphicFrameShape
Then, when I select it on the Drawing, and set the scaling percentage to 200%, the bounding box is scaled twice bigger. But I also need to scale by objects to 200%.
How to sign on scaling command?
I have debug version of InDesign. I added my plug-in, attached with visual studio to InDesign process, turned on all the commands in Diagnostics. Then tried to scale my object.
Thats what i got:
Turning command trace on
kTransformPageItemsCmdBoss Diagnostics::ProcessCommand()
IID_ICOMMAND, kTransformPageItemsCmdImpl
IID_IDYNAMICUPDATE, kDynamicUpdateImpl
IID_ITRANSFORMCMDDATA, kTransformCmdDataImpl
IID_IBOUNDSDATA, kBoundsDataImpl
IID_IBOUNDSCHECKER, kTransformCmdBoundsCheckerImpl
IID_IMOVERELATIVECMDDATA, kMoveRelativeCmdDataImpl
IID_IROTATEITEMCMDDATA, kRotateItemCmdDataImpl
IID_ISCALEITEMCMDDATA, kScaleItemCmdDataImpl
IID_ISKEWITEMCMDDATA, kSkewItemCmdDataImpl
Item List
uid 0xc2 ClassID Unknown3rdPartyPrefix + 25 (0xe9419)
kRedefineScalingCmdBoss Diagnostics::ProcessCommand()
IID_ICOMMAND, kRedefineScalingCmdImpl
IID_IUIDDATA, kUIDDataImpl
IID_ISCALEOBJECTCMDDATA, kScaleObjectCmdDataImpl
Item List
uid 0xc2 ClassID Unknown3rdPartyPrefix + 25 (0xe9419)
kGfxApplyAttrOverrideCmdBoss Diagnostics::ProcessCommand()
IID_ICOMMAND, kGfxApplyAttributeOverrideCmdImpl
IID_IPMUNKNOWNDATA, kPMUnknownDataImpl
IID_ICLASSIDLISTDATA, kClassIDListDataImpl
IID_IAPPLYATTRIBUTE_CMDDATA, kApplyAttributeCmdDataImpl
Item List
uid 0xc2 ClassID Unknown3rdPartyPrefix + 25 (0xe9419)
kTransformPageItemsCmdBoss Diagnostics::ProcessCommand()
IID_ICOMMAND, kTransformPageItemsCmdImpl
IID_IDYNAMICUPDATE, kDynamicUpdateImpl
IID_ITRANSFORMCMDDATA, kTransformCmdDataImpl
IID_IBOUNDSDATA, kBoundsDataImpl
IID_IBOUNDSCHECKER, kTransformCmdBoundsCheckerImpl
IID_IMOVERELATIVECMDDATA, kMoveRelativeCmdDataImpl
IID_IROTATEITEMCMDDATA, kRotateItemCmdDataImpl
IID_ISCALEITEMCMDDATA, kScaleItemCmdDataImpl
IID_ISKEWITEMCMDDATA, kSkewItemCmdDataImpl
Item List
uid 0xc2 ClassID Unknown3rdPartyPrefix + 25 (0xe9419)
kSetBoundingBoxCmdBoss Diagnostics::ProcessCommand()
IID_IWHENTORECALCCJKGRID, kWhenToRecalcCJKGridImpl
IID_ICOMMAND, kSetBoundingBoxCmdImpl
IID_ISETBOUNDINGBOXCMDDATA, kSetBoundingBoxCmdDataImpl
IID_IDYNAMICUPDATE, kDynamicUpdateImpl
IID_IBOUNDSDATA, kBoundsDataImpl
IID_IBOUNDSCHECKER, kSetBoundingBoxCheckerImpl
IID_IBOOLDATA, kBoolDataImpl
Item List
uid 0xc2 ClassID Unknown3rdPartyPrefix + 25 (0xe9419)
kTransformAgainSentinelCmdBoss Diagnostics::ProcessCommand()
IID_ICOMMAND, kTransformAgainSentinelCmdImpl
Item List is empty
Then I enabled Spying on kTransformPageItemsCmdBoss command.
That's what I got in output:
Begin cmd no. 0 'kTransformPageItemsCmdBoss' (class id 0x2c44)
>> Direct Change: SetDirty (id: 194)
>> Direct Change: SetDirty (id: 194)
Begin cmd no. 1 'kRedefineScalingCmdBoss' (class id 0x2c45)
Begin cmd no. 2 'kGfxApplyAttrOverrideCmdBoss' (class id 0x6e3f)
## Begin Sequence
## End Sequence
End cmd 'kGfxApplyAttrOverrideCmdBoss' (class id 0x6e3f)
Begin cmd no. 3 'kTransformPageItemsCmdBoss' (class id 0x2c44)
End cmd 'kTransformPageItemsCmdBoss' (class id 0x2c44)
Begin cmd no. 4 'kSetBoundingBoxCmdBoss' (class id 0x2c26)
End cmd 'kSetBoundingBoxCmdBoss' (class id 0x2c26)
End cmd 'kRedefineScalingCmdBoss' (class id 0x2c45)
// Root Command is Done
End cmd 'kTransformPageItemsCmdBoss' (class id 0x2c44)
Read SDK a lot, but still CAN'T GET how to sign on scaling command?
Which interface i need to realize and where to pass it, in order to get my handler involved?Could you clarify, how to realize that document observer.
I've tried to implement observer as it is found in
(CS3 SDK)\source\sdksamples\customdatalink, but not realizing responder - the objectd has not been created and constructor has not been called.
Could you be so kind to clarify how exactly I should realize my observer and how should I interact with it in order to get the command, described earlier. May be with some samples. -
Cannot complete the reduce noise command in cs2.
"Cannot complete the reduce noise command in cs2 due to program error." Have uninstalled and reinstalled photoshop but same message appears when I click filter>noise>reduce noise. Same thing happens in filter>sharpen>smart sharpen. These 2 filters used to be working. Can somebody help me please.
try this: http://forums.adobe.com/thread/375776?tstart=0
-
Script for using layer name in Save for Web command
I am using the Save for Web command (Illustrator CS2) to export layers to CSS so that each layer is saved as a different jpg. The only issue I have is that I want the layer name to be part of the file name, but layer name is not an option when I look at the "Edit Output settings" dialog for saving files. Is there anyway I can do this? I do not have experience writing or working with scripts.
For example. My fiel name is flower.ai. I will have 20 different layers (each containing a different color of the same image) and want the exported file to be flower-scarlet.jpg, flower-cranberry,jpg, etc. Right now I am looking at renaming all the files manually, but as I am creating 40 images per product on my website, this will be very time consuming.
Thanks in advance
ChristineBtw.. to make it work for JPGs, change the PNG options to the following:
var options = new ExportOptionsJPEG();
options.antiAliasing = false;
options.optimization = false;
options.artBoardClipping = true;
options.qualitySetting = 100; // value of 0 to 100, 60 is medium, 100 is perfect
options.blurAmount = 0;
options.verticalScale = 100;
options.horizontalScale = 100; -
OS command before msg processing: In sender FTP
hi all,
i have a file-to-file scenario.Now i have to pick the latest file from FTP folder based on timestamp.All the files are named in yyyymmdd format .I came to know that i can run an OS command before message processing to delete the old files and keep the latest file in the folder.
But i do know know how to write the script for this particular requirement.Can anybody please help me out with the code???
regards,
NisheetaHI,
If you want to delete filenames from Adapter use the following sample code:
File adapter OS Command: D://server_dir//subdir//myCMDfile.bat %F
Batch file:
del %1 new_filename_with_path
OR
Please see the below links
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
OS Command on FTP
OS command line script - Need help
FTP - Run OS Command before file processing
Hope this solves your problem.
Regards
Chilla.. -
Unable to run a Batch File Operating System Command
Using XI 3.0, I am unable to run a Batch File Operating System Command After Message Processing.
My Batch file:
gpg -se -r BOA3RSKY --armor --passphrase-fd 0 %1 < C:\Progra~1\GNU\GnuPG\gpgin
My Command Line (ID scenario)
exec "cmd.exe /c C:\Progra~1\GNU\GnuPG\boagpg.bat %F"
If I execute
exec "cmd.exe /c type C:\Progra~1\GNU\GnuPG\boagpg.bat >xis.txt"
It displays the contents of boagpg.bat file in xis.txt.
I just don't understand why when I run the batch file, I would expect an %F.asc encrypted file in the same directory as the %F unencrypted file.
Any ideas?
or will I need Basis to create commands that will allow me to run GPG from XI Command Line?Check this links if its helpful
http://help.sap.com/saphelp_nw04/helpdata/en/bb/c7423347dc488097ab705f7185c88f/frameset.htm
/people/sap.user72/blog/2004/01/30/command-line-help-utility
Check this thread a similar problem
Process Integration (PI) & SOA Middleware
Note 841704 - XI File & JDBC Adapter: Operating system command
http://service.sap.com/sap/support/notes/841704
Try to see the below links
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
OS Command on FTP
OS command line script - Need help
FTP - Run OS Command before file processing
Note: reward points if solution found helpfull
Regards
Chandrakanth.k -
I'm using Adobe Reader 9.4.7 under Ubuntu Linux 10.10 at the command line to scale a PDF to 50%. It seems that Reader is ignoring the scaling commands and prints full size. Here is the command I'm using:
acroread -toPostScript -scale 50 test.pdf
and then I ftp the PostScript file to the printer in binary mode so no driver is involved.
Why is the scale option ignored?If the page contains something the reader can display, then you will see parallel horizontal lines in the URL bar as shown at the left here. Click these lines to get the reader.
-
Smooth image scaling is not so smooth
Okay, comparing jdk1.6.0_05 with Photoshop CS2 with respect to their ability to do smooth bicubic scaling is a bit unfair.
However - the end result is so different, that I'm tempted to report this as a bug.
Code:
g2.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
g2.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);
g2.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_DISABLE);
g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
g2.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);* [Original image 1028x2000 GIF|http://konzoomer.com/3-0020662000064.gif]
* [Scaled with Photoshop CS2 122x237 JPG|http://konzoomer.com/3-0020662000064-scaledWithPhotoshop.jpg]
* [Scaled with Java 6 122x237 JPG|http://konzoomer.com/3-0020662000064-scaledWithJava1.6.0_05.jpg]
So - is there any way to get closer to the photoshop result? Have I missed a vital rendering hint?Steel wrote:
Even though he was posting an advertisement, I think he is right: A single recomendation for a commercial product isn't treated as a violation of the CoC. All the user karimchik posted for the last 3 years were links to the same commercial product.
There are sites and forums which have announcement and advertising sections, where such persons may post without violating any rules. This doesn't happen to be one of them.
Identified advertisers will be blocked without mercy.
Still, I hope someone at Sun will look at this sometime.Um, you'll only find volunteers here. AFAIK there are no Sun employees who frequent the forums.
Maybe you could consider filing a RFE.
db -
I've recently moved to InDesign3 from Pagemaker. I have some pretty elaborate scripts in PM that I need to reproduce in ID3. In PM there was a list of all the available scripting commands and their required format. I've been looking and haven't found anything similar in ID3. Is there a list of available commands other than the sample scripts?
There's a list for CS2 here: http://www.kahrel.plus.com/indesign/id4-dict.html. It highlights the new script commands for CS2 (InDesign 4), so if you ignore those you get the list for CS (InDesign 3). If you're on Windows, you could also use Teus de Jong's object browser (http://www.teusdejong.nl/, pick "InDesign utilities").
Peter -
Hello,
We are running into a problem web-enabling a client-server Forms application. We are using WebUtil for HOST and OLE calls and sending files between client and app-server and it all works really marvelous. But we noticed that the DDE package is not available in WebUtil. Unfortunately for us, we are using DDE calls to interact with MS Word (for example merging template letters with address-data) and MS Excel (filling out template sheets with data).
Can you tell me if DDE will be available in future releases of WebUtil? And, if not, is it (generally) possible to rewrite the DDE-calls to OLE-calls using WebUtil's CLIENT_OLE functions? And what DDE-functionality maps to the corresponding OLE-functionality?
Or, if it's not possible to rewrite DDE to OLE, what are the alternatives? Removing the interaction between web-forms and MS Office is NOT an option ;-)
Thanks in advance,
H. Verschurenvar shell=new ActiveXObject("WScript.shell")
var command=null
var key
try {
key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\11.0\\Word\\InstallRoot\\Path" /* Word 2003 */
command= shell.RegRead(key);
} catch (e) {
try {
key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\9.0\\Word\\InstallRoot\\Path" /* Word 2000 */
command= shell.RegRead(key);
} catch (e) {
try {
key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\8.0\\Word\\InstallRoot\\Path" /* Word 97 */
command= shell.RegRead(key);
} catch (e) {
command="\"" + command + "\\Winword.exe\" ftp://10.100.x.x\\ftpshare\\macros.dot -mMyMacro"
shell.run(command,1,false)
I must learn to monitor threads after I have contributed. -
XI File Adapter: Sender and the use of wildcards in the directory name
Hi,
Quick question for you XI guru's. I have a requirement to <b>read</b> files from an ftp server that live in separate directories like:
/dir1/subdir1/in/
/dir1/subdir2/in/
/dir1/subdir3/in/
I want to setup the communication channel so that it does something like:
/dir1/*/in
Normally I would specify the other directories in the advanced tab however there could be potentially 1000's of subdir's so I want to use a wildcard. Is it possible to do this with a directory name?
I have read this link and it seems to only indicate using wildcards in the filename.
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htmHi,
I think.. try as below
It is better to use OS script to read the said three directories.
bcz you know three directories. so you can use OS script file and that file can be configured in Ftp adapter.
OS Command from FTP
Please see the below links
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
OS Command on FTP
OS command line script - Need help
FTP - Run OS Command before file processing
/people/sameer.shadab/blog/2005/09/21/executing-unix-shell-script-using-operating-system-command-in-xi - Call UNIX Shell Script
Chilla -
Path of the folder in configuring file adapter
hi i m doing a file to file scenario from one server to the other
wat should be the path of the folder
i tried with
//172.27.34.250/sender
for acessing sender folder in the C:
but the file is not picked
could u plz help me out of thisHI,
Clarify is it on your Xi server or remote server.
as explained above if it is XI server , the use the folder name with shard path.
else if it is remote server then use FTP instead of NFS.
see the below links
/people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii see for file to file.
and see the below links for FTP related threads
/people/sravya.talanki2/blog/2005/08/23/sender-xi-ftp-adapter-with-regular-path-expression-150-abap
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
OS Command on FTP
OS command line script - Need help
FTP - Run OS Command before file processing
Regards
Chilla -
File to Idoc - File not picked up
Hi experts,
In the file to idoc scenario when i post a file in the file server it is not picked up by the file adapter. But in the communication channel monotoring it reports <b>'Process finished sucessfully'</b>.
Help me out in this issue.
Regards
Santhosh Kumar VHI Santhosh
if you are using NW latest version.check in Communication channel monitoring
otherwise in Adapter monitoring.
Check u r Sender Communication channel working or not... in RWB->Component monitoring->Communication channel monitoring..
in which color it is displaying u r Sender Communication channel?? If it is in RED color then u r sender cc is error one.
Check the following:
1. Name of the input file and the filename in communication channel should match.
2. The communcation channel is activated
3. The folder path is correct.
4. The Processing mode is "Delete"
5. XI server is up when u try the scenario
6. The adapter has status green in RWB Adapter Monitoring
7. Sender Agreement is properly configured
As explained above
See ,,
--Check the FTP server details
--Check the User.pwd and authorisations -- to read file,
--Check the File name sapecified in sender CC, and check the file i spicked by CC or not in RWB channelmonitorservlet
by http://host:port/mdt/channelmonitorservlet
--Also see the below links
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
OS Command on FTP
OS command line script - Need help
FTP - Run OS Command before file processing
/people/sravya.talanki2/blog/2005/08/23/sender-xi-ftp-adapter-with-regular-path-expression-150-abap - Sender XI FTP Adapter with Regular Path Expression ABAP
Cheers..
Vasu
<i>** Reward Points if found useful **</i> -
ContentPath not working in a loop for a Loader component
i'm trying to load pics into a loader in my movieclip, i'm
looping through about 20 items, to be placed in a movieclips
dynamically attached...
this does not work...
mcContainer['node'+nCount].pic.contentPath=myimagepath;
this does work...
mcContainer['node'+nCount].pic.loadMovie(myimagepath);
but it does not come in scaled / sized like I want...
any reason why the images do not appear in the loader
component in the movieclip? it's like the screen is not being
refreshed or the loader never finishes, when I trace the
contentPath after the fact it says the right path, but no image is
there.contentPah is used to specify linkageID's only, and will not
work for a URL. you correctly used the load method to get the
picture in there, now you just have to scale it. if you set the
loader's scaleContent to true, your image will scale to the
loader's size, and vice versa if you set the property to false. if
you need to do some custom scaling based on the size of the image,
you can grab those properties like so:
myLoader.content._width
not that the above property, and any scaling commands, will
only work after the loader finishes loading, so you'll need to put
that stuff in an event handler for the loader.complete event...
hope that helps -
I have about 12 swfs that I need to put into a Director shell
and when I do the buttons on the swfs that link to other swfs work
fine but the buttons in the swfs that link to the web don't work at
all (neither do the quit buttons on the swfs). I know it's probably
(hopefully anyway) something simple but my lil brain is fried from
trying. Any help would be greatly appreciated. Thanks in
advance.When you use getURL in Flash it's anticipated that there is a
browser
present hosting the swf so that it can react properly. In
your case
there isn't, so you need to have Director catch those
commands.
Drop a behavior on your Flash sprite and see what Flash is
saying to
you, and then decide how to react:
on getURL me, tData
put tData
end
Maybe you are looking for
-
How to create a report in netbeans 5.5
I am new in java IDE netbeans 5.5, I am creating a project which is POS then I need to print some receipt. People in this community please me in with this problem thanks....
-
How to use a home theatre to compaq lappy
sum 1 s there
-
IPhoto 11 - Inconsistencies in your library
Running OSX 10.7.2 and latest version of iPhoto. Upgraded all software as the library needed to be upgraded to work with this version after several failed attempts to upgrade the library I upgraded all software (OS & iPhoto). I then get the message "
-
Hi all, I use a full system simulator simics to boot sun solaris os and do some research on it. Now I have no idea how to disable a specified cpux after the system is booted. I have tried to use "psradm -f ID" to disable the cpuID. However, it seems
-
Does apex allow using external DB to fetch data ?
Hi, I need to build a small Internal Application that show reports in tabular and/or graphical form. Using Apex can I build an application that uses a realtime database (already hosted on one of server and is populated by different api's), as I will