Includes in BridgeTalk object
Hi all, I'm writing a module to execute scripts from InDesign to Photoshop. I used bridge talk and the module works until now I would like to include a library in the photoshop script but this script in executed in the photoshop context so I cannot use relative path … Has anyone an other idea to do this cleaner?
In advance thanks you for your help!
// crop this link
H.Gateway.call_app(
'photoshop',
crop_in_photoshop,
[current_link.filePath, top_left_corner, bottom_right_corner, graphic.absoluteHorizontalScale, graphic.absoluteVerticalScale, resolution, 'ResampleMethod.NONE'],
100
Here I have to write the path with absolute notation
function crop_in_photoshop (file_path, top_left_corner, bottom_right_corner, horizontal_scale, vertical_scale, resolution, resample_method) {
//@include "/Applications/MAMP/htdocs/extendscript-library.org/lib/photoshop/photoshop-lib.jsx"
try {
PS.Config.init();
PS.Application.open(file_path);
var ps_doc = app.activeDocument;
PS.Document.Resize.resampling(ps_doc, file_path, horizontal_scale, vertical_scale, resolution, resample_method);
bounds = [top_left_corner.x, top_left_corner.y, bottom_right_corner.x, bottom_right_corner.y];
ps_doc.crop(bounds);
ps_doc.save();
catch (ex) {
throw {
name: 'Error',
message: ex.message,
fileName: $.fileName,
lineNumber: $.line
finally{
PS.Application.restore();
The Bridge Talk module
my.call_app = function (app, function_to_execute, args, timeout) {
var error_message;
var result;
var complete;
var bt = new BridgeTalk();
bt.target = app;
if (args) {
* build a string representation of the function
* (function hello(a, b)
* my code;
* }).apply(this, [])
bt.body = function_to_execute.toSource() + '.apply(this, ' + args.toSource() +');';
else {
bt.body = function_to_execute.toSource() + '();';
bt.onError = function (ex) {
error_message = ex.body;
bt.onResult = function (response) {
result = response.body;
complete = true;
bt.send(timeout); // we have to wait the response of the other software
// if an error occurred throw it
if (error_message) {
throw {
name: 'Error',
message: error_message,
fileName: $.fileName,
lineNumber: $.line
// if the onResult function isn't complete, the timeout exceeded
if (!complete) {
throw {
name: 'TimeoutError',
message: 'exceeded timeout of ' + timeout + ' seconds',
fileName: $.fileName,
lineNumber: $.line
// else return the result or null
return result || null;
Hi all, I still have problems with includes in extendscript. Has somebody an idea how to write a function to include aboslute file like this: include (MY_SCRIPT_DIR + 'test.jsx'); // result shoud be something like that // #include "/Applications/MAMP/htdocs/extendscript-library.org/lib/photoshop/photoshop-lib.jsx" Thanks you!
Similar Messages
-
SP 2013 Server + Dec 2013 CU. Upgrading from SharePoint 2010.
We have a web application that is distributed over 7-8 content databases from SharePoint 2010. All but one database are upgradable. However, one database gives:
Invalid object name 'Webs'.
while running Test-SPContentDatabase or Mount-SPContentDatabase.
EventViewer has the following reporting 5586 event Id:
Unknown SQL Exception 208 occurred. Additional error information from SQL Server is included below.Invalid object name 'Webs'.
After searching a bit, these links do not help:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/fd020a41-51e6-4a89-9d16-38bff9201241/invalid-object-name-webs?forum=sharepointadmin
we are trying PowerShell only.
http://blog.thefullcircle.com/2013/06/mount-spcontentdatabase-and-test-spcontentdatabase-fail-with-either-invalid-object-name-sites-or-webs/
In our case, these are content databases. This is validated from Central Admin.
http://sharepointjotter.blogspot.com/2012/08/sharepoint-2010-exception-invalid.html
Our's is SharePoint 2013
http://zimmergren.net/technical/findbestcontentdatabaseforsitecreation-problem-after-upgrading-to-sharepoint-2013-solution
Does not seem like the same exact problem.
Any additional input?
Thanks, Soumya | MCITP, SharePoint 2010Hi,
“All but one database are upgradable. However, one database gives:
Invalid object name 'Webs'.”
Did the sentence you mean only one database not upgrade to SharePoint 2013 and given the error?
One or more of the following might be the cause:
Insufficient SQL Server database permissions
SQL Server database is full
Incorrect MDAC version
SQL Server database not found
Incorrect version of SQL Server
SQL Server collation is not supported
Database is read-only
To resolve the issue, you can refer to the following article which contains the causes and resolutions.
http://technet.microsoft.com/en-us/library/ee513056(v=office.14).aspx
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
Resizing document (including locked & hidden objects)
Is there an Illustrator equivalent of the Photoshop Image Size command? I want to globally scale my entire document (including the artboard). But I also want to make sure any hidden or locked objects/layers are included.
Is there maybe a script for this?
-
Where to include the SolarisNamingProfile object class
Hi,
trying to use DS 5.1 to authenticate Solaris 8, I don't know where to include this object class. LDAP Setup and Configuration Guide (806-5580 from Jan 2001) refers to the slapd.user_oc.conf file that no longer exists.
Which of the ../config/schema files should we use?
TIA
IvoSrini
Use customer-function EXIT_SAPLVEDA_001 to put your custom checks for Segment E1EDKA1.
Thanks & regards,
Amol Lohade -
Sample payload to include multiple Data objects in BAM
Hi,
We are using BAM 12c in our project. We have a requirement to insert/update data into multiple data objects as part of an EMS [Enterprise Message Source] request. As part of the request, I have some Dimensions data and Fact data. When I submit the request to server, I need to insert dimensions data when there is no data available for the specific dimension key, otherwise update the dimension meta data. Then I need to insert Fact data in to another data object along with the reference of the dimension data.
From the Oracle documentation, https://docs.oracle.com/middleware/1213/bam/BAMUG/bam-enterprise-message-src.htm#BAMUG10589 I found sample payload for one data object operations, under the text: Use Self-Described Payload.
Please share a sample payload to submit it to BAM so that data will be created in multiple configured BAM data objects in one EMS request.
Thanks in Advance.
SatyaDeepan:
Thank you for the fast response, the xml file you have given below will clear all the DO rows specified in that file.
+<?xml version="1.0" encoding="utf-8"?>+
+<OracleBAMCommands>+
+<Clear name="/folder/do1" />+
+<Clear name="/folder1/do2" />+
+</OracleBAMCommands>+
But in an organization in long run when data objects keep on increasing. should we also keep on adding the "Clear" statement into the xml file.
i.e. like to ask the developer to create an entry in this xml file each time he creates a data object in BAM console?
do we have any command like
<Clear type = "dataobject" all="1" />
Thanks you very much in advance -
How to include objects of a z* package into a single request
Hi Gurus,
The requirement is I need to include all the objects in a z*package into one single request.One way is I find out latest version of each program and include it in request.But there are some 200 objects in the package.Is there any simple way to do it , I mean is there any option wherein I type the package name and all programs get included in the request..........
Helpful answers will be rewarded
Regards,
Raghu.Please try this ..
Goto SE09 ..
Create a transport request ...
Delete the sub-task ..
Now place cursor on main task(request)
click on Include objects(Ctrl+F11)
In the popup check 'Freely selected objects' radio button .. click Ok
Enter the package name ... and any other parameters .. and F8 ..
This will include all the objects in the particular package selected ..
Then release the task ... -
Aggregation level includes filter objects...
Hi,
We are using a BO universe on top of a BEX query to create WebI reports.
We now run into the following problem when filtering on a certain characteristic in the BO query.
The result set of rows is limited to the correct values, but not aggregated up to the requested aggregation level. The problem exists whether the key figure is defined as having an aggregation to be database delegated or sum.
In the query results we see the number of rows being pulled back is too high, the results displayed are correct (because aggregated by WebI). In the example below we selected three stores, but not store as a result object.
*** Query Name:Query 1 ***
** Query Properties:
Universe:Retail Sales and Stock
Last Refresh Date:9/2/10 2:29 PM
Last Execution Duration: 33
Number of rows: 4,947
Retrieve Duplicate Row: ON
** Query Definition:
Result Objects: Style Code, NSLS @ PCS
Filters ( Only RMS Billing Documents Infoprovider
AND Given Legacy Division Set
AND Given Currency Conversion Type
AND Store Key In List { 1001; 1002; 1003 }
AND NSLS @ PCS Not Equal 0
We cannot attach a document, but the actual amount of rows should have been 2,856,
the number of different style in these 3 stores.
When we include the store object in the results, we can see the number of rows stays the same (proof that it did indeed return rows on a store level and not aggregated upt to the style code...
*** Query Name:Query 1 ***
** Query Properties:
Universe:Retail Sales and Stock
Last Refresh Date:9/2/10 2:09 PM
Last Execution Duration: 13
Number of rows: 4,947
Retrieve Duplicate Row: ON
** Query Definition:
Result Objects: Style Code, Store Key, NSLS @ PCS
Filters ( Only RMS Billing Documents Infoprovider
AND Given Legacy Division Set
AND Given Currency Conversion Type
AND Store Key In List { 1001; 1002; 1003 }
AND NSLS @ PCS Not Equal 0
Is this behaviour fixed in any fix pack? Or did noone address this problem?
The problem becomes a real problem when the user wants to select everything u/i a certain date.
The number of rows are then pulled back on a style/store/day combination and easily reached 100.000 rows.
Thanks for any insight you can give on this,
MarianneHi Rik,
Thanks for at least trying
I didn't try this before, so I just did, despite the fact that the aggregation level only has something to do with the way data aggregates within webi. (I'm that desperate)
No difference, other then the fact that I now get #MULTIVALUE in the cells with multiple underlying rows.
Anyone else?
Marianne -
Browse Button for PHP Include Object
Once an Include is inserted into the page is there a way to
browse for the needed include file or do I have to hand type the
path and file name?
Thanks.WesleyF wrote:
> When I insert a new Include (Insert > PHP Objects
> Include) the Property
> Inspector shows just a ? in the top left square and the
Server box. Doesn't
> have the Edit, etc. In Server window is include();
The argument passed to include() must be a string. If you do
this:
include(myfile.php);
you'll get just a question mark in the Property inspector,
and the
include won't work correctly.
If you do this:
include('myfile.php');
You should see the Edit button. Moreover, the include will
work correctly.
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Where to include custo object types in workflow events?
Hi All,
One of my friend is working on HR related Workflow. He has a question about where to include the custom change document infotypes in workflow events.
To make it clear, he says there are three transactions swehr1, swehr2 and swehr3. Now, if he wants to include a custom object (Z object) which transaction should he use?
Please reply ASAP.
Regards
Swapna.Yes, you use swehr1 to link the infotype to the object type. Then use swehr3 to create the event linkage to your function module or object type event.
I just did this with an e-recruiting project and it worked fine. For example:
swehr1 entry:
NB Requisition 5131 Persons Responsible ZERC_REQUI Job Requisition
swehr3 entry:
NB Requisition 5131 Persons Responsible INS 0 ZERC_REQUI Z_ON_MEMBER_ADD
This accomplishes the following: when a record is inserted for infotype 5131, the function module Z_ON_MEMBER_ADD runs. That function module decides if or which event should be raised. Alternatively I could have entered an event for the ZERC_REQUI object type, but then the event will always be raised on a 5131 record insertion, and for my application I didn't want that.
I hope this example is helpful.
~Margaret -
Including delivery text item (object VBBP) in a Smartform
Hi,
I want to include 'Delivery Text' ( Object VBBP, Text ID 0004) into my Delivery smartform.
I have created a Include Text Text field but what is the Text Name of this delivery text item.
tnks for any helpit is delivery number + item number
delivery number should be 10 digits ,0000045677000010 -
How to create a document/report on all objects in the BW system?
Hi,
The requirement in our company is to create a document/report with the list of all the objects that exist in the BW system for various applications. This list should contain the technical details of the different objects and where an object is used, what's the source for the object etc. The information should be similar to that in the Metadata repository but it should be one single document/report which includes all the objects.
I tried using the 0TCTBWOBJCT info object (content browser) but it was not of great help.
Can anyone help me out in this task?
Thanks,
AnuHi,
Try to use tables RSOSFIELDMAP, RSDSSEGFD and RSTRAN
Hope it helps
bhaskar -
For SAPscript INCLUDE TEXT, how to align as Paragraph format
Hi experts and ABAP colleagues!
Need your help on this sapscript problem:
How to align texts taken from "INCLUDE TEXT" in SAPscript, according to tab defined in Paragraph Format?
For example, I defined BG to have tabstop at the 2nd column (or equivalent to 1st tab position) where I need to print the text, and then declared it in SE71 like below:
However the text prints at the leftmost instead of at the 2nd col position - (8th char tab defined in par. format BG). Hence it is not aligned to its proper heading. Line Number instead of Description - which is not okay for client view that needs these Thai texts.
The technical details I included below. Kindly examine:
1.) Window >Main > Text Element > Include Text command
/E ITEM_TEXT
BG ,,&TTXIT-TDTEXT&
/: INCLUDE &T166P-TXNAM& OBJECT &T166P-TDOBJECT& ID &T166P-TDID&
/: NEW-PARAGRAPH BG
Note: I used command "NEW-PARAGRAPH" and had exactly the above code in se71. Anything missed here? Pls. help. Thanks.
#2.) Paragraph Format > Tab
No. -
Tab Position -
Alignment
1 8,00 CH LEFT
2 28,00 CH CENTER
etc.
Note: and then i put in ",,&TTXIT-TDTEXT&" (see above) with the 2 comma's beforehand to say that its on the 1st tab or at the 8th character where it should be printed, but does not give intended result... pls help.
#3.) Paragraph Formats > Standard Attributes
Left Margin - 0 cm
Alignment - Left
no blank lines checkbox - ticked
Note: Is there any more attribute i can manipulate from here to force display at the right position?
Thank you so much in advance for all your help. Our project team will really appreciate it. May the Lord bless you as we go through our SAP work!
Sincerely,
CelesteHere's a thought, instead of using tabs, try writing a method that takes a string that is the starting string, a pad character, and a length and returns a string padded to that length with the specified character.
public String padR(String src, String padChar, int len)
// ... You get to fill in the rest suggestion try to do it without a loop
}Have fun,
PS. -
Error while adding an Info Object in an Info Cube
Hi Experts,
I am trying to add one InfoObject to my info cube but I get following error:
"InfoObject GSMBUHR is only allowed as an attribute (not in InfoCubes)"
The Data Type of the InfoObject is TIMS.
The Reference Char. for it is 0TIME
And in other Properties Attribute only is checked.
but its not maintained as an attribute of any InfoObject as I checked in where used list for this InfoObject.
Please let me know to add it in cube.
Regards
Shubh Karanhi,
u will not be able to add an 'attribute only' info object as characteristic in the cube
it can only be added as an attribute in another master data characteristic. so if u still want to include this info object , u need to unchecck 'attribute only' flag.
hope it helps
Regards,
Rathy -
Not able to create a java class included in custom jar from script
Hi,
We need to call a third-party web service from within SAP Sourcing and so we have created and deployed a custom JAR. However I am not able to create any of the custom classes included in this object. I have created a simple JAR file having just a "Hello World" message and got our BASIS team to deploy this (they deployed using the steps mentioned in Installation Guide Section 4.2.4 - we are using Sourcing Wave 9). I have added the required import statement in my test script and included this line:
HelloWorld test = new HelloWorld();
When this script executes, it gives the error:
Class:HelloWorld not found in namespace.
Can you please give your suggestions on how to fix this error?
Thanks,
GayathriThe issue was fixed after including the custom jar in esourcing90/lib folder and redeploying
-
How to perform a character protect when using include text in Script form?
In my main window I have code as below:
INCLUDE &GS_EKKO-EBELN& OBJECT EKKO ID F19 LANGUAGE EN
INCLUDE &GS_EKKO-EBELN& OBJECT EKKO ID F19 LANGUAGE ZH
There is nothing wrong with language zh but...
For English,Every word at the end of line was splited
EG:In text,It should be "I hate Sap script"
But it is "I hate sap scr
ipt"
I noticed that there is a protect in character which is used to prevent this,But text included is a command so I can't give them a character format.In default paragraph format there is only "para protect" which can't protect word but paragraph...
I don't want to code in abap because I have static text and included long text appear alternatively,if coding,I will use so many text element one by one to loop the tdlines...
So,If anyone can help me?
Thanks~Thanks but
If append tdlines...It would be
/e Text element1
xxxxxxxxxx
/e tdlines1
loop tdlines
/e text element2
xxxxxxx
/e tdlines2
loop tdlines
/e text element3
xxxxxx
/e tdlines3
loop tdlines
Too many text element....
Is there any other solution...?
Maybe you are looking for
-
Can we create interactive forms in IDES ?
hi experts What are the pre requisite required to generate pdf forms.can we learn in IDES system ? What s/w required ? Regards, Anwar
-
Only the first image of table appears
Hello, my problem concerns dynamically added images in templates designed with Template Builder 5.6 Build 45 for Word 2002 (10.4219.4219) SP-2 and Oracle E-Business Suite 11.5.10.2. My template includes a simple table with an image field containing a
-
Can we read AutoCad drawing in LabVIEW using ActiveX??
Hi hello , Can we read AutoCAD drawing from LabView????
-
Cisco Security Manager and User-aware firewall rules
Hello ! I have a firewall ASA which is managed with CSM and I try to create some user-aware rules. To do this, I need to match CSM with an Active Directory server. I added an AAA server group matching my Active Directory server in the Identity Settin
-
Calling a VC++ DLL from a java code!!!! Urgent!!!
Hi, I need a Java code which will call a VC++ dll .(similarly the viceversa also.....from vc++ calling a java application) If any one have the code Please send it... Thankx, Donam.