How to execute the InDesign Javascript from outside in MAC
Hi All,
I need to execute the InDesign Javascript from outside in MAC machine.
Anyone can help me.
Thanks in advance.
Regards,
Ramkumar
If you just want to imitate double clicking a file, use execute() method, e.g.:
var myJavaScriptFile = new File("~/Desktop/Test.jsx");
myJavaScriptFile.execute();
At the top of your .jsx file type #target indesign to make the script run in InDesign.
And I want to add to what Harbs said in the previous post: when you use do script command, you can also send parameters and get back values. See DoScriptParameters and DoScriptReturnValues sample scripts from InDesign CS3 Guide Scripts for details.
Similar Messages
-
ALV Grid editable - How to raise the data_changed event from outside object
Hi,
i'd like to like to raise the data_changed event from outside the ALV-Grid object in order to display errors to the user.
For example a new row was inserted within the program. The user has only to complete the missing informations. Before saving the transactions the program has to execute some semantic checks. The errors of this check process should be shown to the user by creating an instance of the cl_alv_changed_data_portocol object.
Thanks.
RegardsYou don't need to raise the data_changed event to perform the edits or to issue messages using cl_alv_changed_data_protocol.
The following assumes you have an ALV grid object g_alv based on the CL_GUI_ALV_GRID class.
You can mark the inserted records upon insertion as selected using the set_selected_rows method, and then retrieve these rows later using get_selected_rows and perform necessary edits.
Save the row number of each inserted row into a table of the appropriate type (see the method definition for this):
DATA: t_index_rows TYPE lvc_t_row.
DATA: s_row_no TYPE lvc_s_roid.
DATA: t_row_no TYPE lvc_t_roid.
Load entries into t_row_no after each insert. Capture the row number and save in the table t_row_no.
e.g.
PERFORM insert_row USING s_row_no-row_id.
APPEND s_row_no TO t_row_no.
FORM insert_row would have whatever code you are using to insert the row. Save the row id into s_row_no-row_id (which is an INT4).
When done with all inserts do the following
IF t_row_no[] IS NOT INITIAL.
CALL METHOD g_alv->set_selected_rows
EXPORTING
it_index_rows = t_index_rows
it_row_no = t_row_no
is_keep_other_selections = 'X'.
ENDIF.
Then, if SAVE is pressed without the data_changed event having been raised (such as if the user just pressed SAVE without changing anything), use method get_selected_rows to retrieve the rows that were inserted and perform the necessary edits.
DATA: l_t_rows TYPE lvc_t_row. " ALV control: Table rows
CALL METHOD g_alv->get_selected_rows
IMPORTING
et_index_rows = l_t_rows.
Loop through l_t_rows and use the row as an index into the grid, perform the necessary edits, just as you would if the data_changed event had been raised.
If any edits fail, then send messages to the user, abort the save, and re-display the grid.
Remember to refresh the t_row_no and t_index_rows tables if you load a new data set.
You can also use a similar technique with the data_changed event to mark each changed row as selected by saving the row ids, and then you only have to update the changed rows on SAVE, which can minimize database I/O.
Good luck.
Brian -
Toolkit for CreateJS: How to control the main timeline from outside the canvas.
Hey Everyone,
I'm currently trying to do something simple, but my animation breaks whenever I attempt to change my code. I have created a basic animation in Flash where an object moves from the left side of the canvas, to the right, and then loops from the last frame to the first frame. Nothing else. The animation is simply put on the main timeline. I exported the animation with Toolkit for CreateJS through Flash's extension and the animation runs as it should. I am trying to start and stop (restarting from the first frame) the animation with mouse over and mouse off events. I want the events to fire when moused over/off a div OUTSIDE the animation's canvas tag. Is this possible with CreateJS? I'm trying to figure out how to control the main timeline without being inside the canvas tag.
Example HTML:
http://www.thephotoncore.com/testing/example_test.html
Example Code:
<section id="container">
<canvas id="canvas" width="550" height="400" style="background-color:#cccccc"></canvas>
<section id="animation_control">
<p>Roll over to start and stop animation.</p>
</section>
</section>
Thanks again for the help!
-DJHi DjPhantasy5,
All movieclips on the stage are children of the stage,
So on the "mouseover" all movieclips on the stage could be stopped with stop and on the "mouseout" all children could be restarted with gotoAndPlay like this:
function Stop()
if (stage && stage.children)
var i, l = stage.children.length;
for (i = 0; i < l; i++)
var child = stage.children[i];
if ("stop" in child)
child.stop();
function Restart()
if (stage && stage.children)
var i, l = stage.children.length;
for (i = 0; i < l; i++)
var child = stage.children[i];
if ("gotoAndPlay" in child)
child.gotoAndPlay(0);
See http://www.liauw.nl/forums/adobe/djfantasy5/index.html
But it is also possible to expose "ball1", for example, by adding it to the document.
This can be done by adding code to "ball1" like so:
/* js
document.ball1 = this;
Then the stopping of the animation would look like:
function Stop()
if ("ball1" in document)
document.ball1.stop();
etc.
Have fun!
Ronald -
How to execute the package generated from Warehousebuilder ??
Hi,
I am very new to OWB, i have created the mapping and i want to write a oracle job to run the mapping, Can i explicitly execute the Package generated by passing the parameters required,
I have actually created like following,
DECLARE
p_status VARCHAR2 (200);
p_deptno NUMBER;
p_max_no_of_errors VARCHAR2 (200);
p_commit_frequency VARCHAR2 (200);
p_operating_mode VARCHAR2 (200);
p_bulk_size VARCHAR2 (200);
p_audit_level VARCHAR2 (200);
p_purge_group VARCHAR2 (200);
BEGIN
p_deptno := 10;
p_max_no_of_errors := NULL;
p_commit_frequency := NULL;
p_operating_mode := NULL;
p_bulk_size := NULL;
p_audit_level := NULL;
p_purge_group := NULL;
map_filter_parameter.main (p_status => p_status,
p_deptno => p_deptno,
p_max_no_of_errors => p_max_no_of_errors,
p_commit_frequency => p_commit_frequency,
p_operating_mode => p_operating_mode,
p_bulk_size => p_bulk_size,
p_audit_level => p_audit_level,
p_purge_group => p_purge_group
DBMS_OUTPUT.put_line ('P_STATUS = ' || p_status);
END;
I am actually following error,
Line: ----
Connecting to the database bl.
ORA-20013: The workspace has not been set. Please call wb_workspace_management.set_workspace procedure to set workspace first.
ORA-06512: at "OWBSYS.WB_WORKSPACE_MANAGEMENT", line 1356
ORA-06512: at "OWBSYS.WB_WORKSPACE_MANAGEMENT", line 1387
ORA-06512: at "OWBSYS.WB_RTI_UTIL", line 102
ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1020
ORA-06512: at "BL.MAP_FILTER_PARAMETER", line 2798
ORA-06512: at line 19
Process exited.
Disconnecting from the database bl.
I am not able to connect OWBSYS to see whats going on with OWBSYS.WB_WORKSPACE_MANAGEMENT as well.
Please suggest
Regards,
Ashoka BLHi Nawneet,
I tried like the following and getting the results,I searched in the forum to do this,
DECLARE
p_status VARCHAR2 (200);
p_deptno NUMBER;
p_max_no_of_errors VARCHAR2 (200);
p_commit_frequency VARCHAR2 (200);
p_operating_mode VARCHAR2 (200);
p_bulk_size VARCHAR2 (200);
p_audit_level VARCHAR2 (200);
p_purge_group VARCHAR2 (200);
BEGIN
p_deptno := 20;
p_max_no_of_errors := NULL;
p_commit_frequency := NULL;
p_operating_mode := NULL;
p_bulk_size := NULL;
p_audit_level := NULL;
p_purge_group := NULL;
owbsys.wb_workspace_management.set_workspace('ASHOK_WORKSPACE','ASHOK_BL');
map_filter_parameter.main (p_status => p_status,
p_deptno => p_deptno,
p_max_no_of_errors => p_max_no_of_errors,
p_commit_frequency => p_commit_frequency,
p_operating_mode => p_operating_mode,
p_bulk_size => p_bulk_size,
p_audit_level => p_audit_level,
p_purge_group => p_purge_group
DBMS_OUTPUT.put_line ('P_STATUS = ' || p_status);
END;
Do you please let me know what are these,
'PLSQLMAP','CUSTOMER_MAP' == WorkSpace_Name and User_Name ??
Regards,
Ashoka BL
Edited by: user7348859 on May 26, 2009 5:07 AM -
How to execute a .sql file from a batch file
Hi all
I've to take backup of a database weekly twice on every wednesday & Friday @ 5pm IST. I've written a hot backup script, which works every well.
now i want to automate the script. ie i want this script to run on wednesday & friday @ 5pm without any human interfearance ie with out actually any1 executing this script.
i created a batch file prod.bak with the following lines
@echo off
set oracle_sid=testdb
set oracle_home=d:\oracle\ora92
sqlplus /nolog
connect sys as sysdba/oracletest@testdb
this batch file when eexecuted connects me to sql prompt.
Now i want to execute my backup script bkp.sql automatically when it is connected to sql prompt.
(i tried with these lines in the above batch file...
call bkp.sql---it just opens the bkp.sql file in notepad & displays the script
start bkp.sql---same as call
connect / as sysdba/pwd@[email protected] --- does not work simply remains a the sql prompt.
At 17:00 /Every:w,f "d:\bkp.sql"---does not work simply remains at the sql promt.)
Can any1 let me know what should i write in the batch file that will execute the bkp.sql file automatically after it gets connected to sql prompt. M using oracle 9i.
I'll manage he time through windows utility of scheduling task.. Let me know how to execute the .sql file from a batch file.
Thanks
TriptiTry
sqlplus "sys/oracletest as sysdba" @bpk.sql
Working locally, and having set the ORACLE_SID, you don't need to specify the SqlNet alias (@testdb).
Remember to put an exit at the end of the bpk.sql script. -
How to execute the valuechangelistener thru javascript ?
Hi,
JDev 11.1.1.6
How to execute the valuechangelistener thru javascript ?
Regards,
Gopiwe need to use ClientListener and ServerListener for calling the method.
please refer the below threads, these includes the code.
how to call backing bean method from java script
Calling the Managed bean class method from javascript on page load
regards,
Rajan -
How can I buy subtitled movies from outside the US?
how can I buy subtitled movies from outside the US?
People here are users, you need to contact Apple Inc. by phone and see if you can resolve this problem.
http://support.apple.com/kb/he57 -
How to execute the job from script ??
How to execute the job from script ?? i have 2 jobs A AND B . I want to execute job B from job A'S Script ?? how can i ??
Hi Kishore,
Please refer the below link for BODS Job execution using Script
Executing a job by another job in BODS 4.1 using simple script
http://scn.sap.com/community/data-services/blog/2013/12/04/executing-a-job-by-another-job-in-bods-41-using-simple-script
Steps for executing BODS job from Unix Script with user defined global parameters
http://scn.sap.com/community/data-services/blog/2013/09/02/steps-for-executing-bods-job-from-unix-script-with-user-defined-global-parameters
Executing a job using batch file
http://scn.sap.com/thread/3503338
How to add a schedule for job2 with a condition after job 1 is finished
http://scn.sap.com/message/14523514#14523514
Scheduling BODS Jobs Sequentially and Conditionally
http://scn.sap.com/docs/DOC-34648
Thanks,
Daya -
How to delete the Hierarchy data from Infoobjects.
How to delete the Hierarchy data from Infoobjects. In my case I had 300 records in the corresponding table of info object.
When i was trying to delete the hierarchy data, I am getting error message. "Some master data not deleted". Can any one tell me to delete all these records by using a program.Hi
Go to SE11 and enter the hierarchy table name.
/BIC/H....(infoobject name)...and execute the table and select table entry and delete all....
Thanks
TG -
How to execute unix command line from cocoa?
how to execute unix command line from cocoa?
for example, if I want to call "ping" from cocoa, how should I do it? and how can I obtain the return value?
thank you.
Power G5 Quad Mac OS X (10.4.3)The following article may also help:
http://cocoadevcentral.com/articles/000025.php
Mihalis.
Dual G5 @ 2GHz Mac OS X (10.4.6) -
How to execute SQOOP.cmd file from SSIS execute process task?
How to execute SQOOP.cmd file from SSIS execute process task?
What is argument need to be prefixed in the arguments property
Executable: C:\Hadoop\sqoop-1.4.2\bin\sqoop.cmd
Arguments: /C "sqoop import -connect "jdbc:sqlserver://mysystem:1433;database=test;username=myuser;password=mypwd;" -table emp -target-dir /user/emptable -m 1"
Thanks
DurgaHi Durga,
SQOOP.cmd must be no different than any other .cmd/.bat I assume, your question is more about setting the parameters up I guessed.
So unless the arguments change dynamically you can call SQOOP.cmd from yet another .cmd that has its parameters passed to it and the former you simply set to run without the arguments in Execute Process Task.
Otherwise, in general to set a bat/cmd file to run in SSIS one needs to do this:
PS: It is a good idea to populate the working directory with the path to the .cmd
Arthur My Blog -
How to execute the content of varchar variable like a simple query
Hi everyone!
I did a PL/SQL region in apex, in this region I did the query which is storaged in a variable; it was did it concatenate several times,
in the procedure I have several sentences.
I thought that the command 'execute immediate' would get a good result but it do not print the result.
declare
variable varchar2(1000);
begin
--sentences
--execute inmmediate( variable );
--return variable
end;
I only want to how to execute the content of varchar variable.
For example, suppose that the result of this procedure is
'SELECT SYSDATE FROM DUAL'
How and what do I must do for this query execute like a normal query that is in apex?
I expect your prompt reply.
Thank you for your help.
Best regardsLet us say your table containing SQL is
t_sql_table
and has two columns
primary_key
and
sql_query.
You would need to do the following:
1. Create a Report of type "Function returning SQL Query"
2. Put the following there:
DECLARE
v_query VARCHAR2 (4000);
BEGIN
SELECT sql_query
INTO v_query
FROM t_sql_table
WHERE primary_key = 1;
RETURN v_query;
END;Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
How to execute 2 different application from same Application Server
Hi,
I would like to know that how to execute two different applications from the same Application Server with different databases?
We are using
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
Oracle Application Server 10g 10.1.2.0.2
Regards,
Hassanwhat type of applications you want to run from the same application server, Hassan?
What other DB are you using to launch it beside the one you quoted? Is it the MRep DB of infra? -
How to execute Dos Command 'Pause' from Java ?
How to execute Dos Command 'Pause' from Java ?
I have read the article in javaworld for Runtime.exec() anomalies.
Can someone please give an insight on this?Thanks Buddy!
That was very useful. Even though its a simple
solution, I never thought about that.Bullshit! Reread reply #7 of http://forum.java.sun.com/thread.jspa?threadID=780193 -
How to execute unix shell script from Java ...
Hi,
Anyone know how to execute unix shell script from Java?
Suppose I have several shell scripts written in perl or tcl or bash.
I just want to catch the output of that script.
Is there any ready to use module/object for this?
Please let me know, this is quite urgent for my study assigment.
Thanks in advance,
Regards,
meLook up Runtime.exec()
Maybe you are looking for
-
How to create a button like the one pictured here
How would I create a button like the print button below? I was thinking actually make it two separate buttons placed next to each other. The print button obviously would just be a modified boolean, that's easy. But the drop down is a bit harder. I fi
-
Call transaction in mode N fro transaction F-02
Hi, The call transaction for F-02 work well in mode 'A' and it creates the FI posting. But when I execute it in mode 'N' it does not post. Any ideas? Thanks in advance.
-
Constructing Jtree with data from Database
Hi I am new to JTree and I need some help. My problem goes like this. I have a table in the data base which has data like Folder_Nr, Folder_Name, Folder_Prev_Nr, Folder_Typ_Nr, Folder_Access. If the Folder_Nr is 1 and folder_prev_nr =0, then it is a
-
Recording problems with ipod nano - too many voices reading audiobook
I have tried listening to two audiobookks on my ipod nano (6G) but the reader's voice is subject to an identical part-second later echo which makes it all but impossible to understand what he is saying - any suggestions as to the cause of this fault
-
Thinkpad twist (s230u) bad sectors and trying to reset to factory software
Hi all My thinkpad suddenly not starting. During bootup, I tried to scan and fix sectors but after 3-4 hours, it said it can not be done (after finding like 400 errors). May be the hard drive is partially corrupted. I tried to reset to factory settin