Is it possible to call an Applescript from a jsx
I can find lots of discussion around calling a jsx script from applescript - but nothing about the other way round. Is it possible to execute an applescript from a .jsx script?
Yes, there are a few ways of doing it, please see...
http://www.ps-scripts.com/bb/viewtopic.php?t=3109
Similar Messages
-
Is it possible to call web service from ABAP SAP 4.6 c..If yes how
Hi Friends,
Is it possible to call web service from ABAP-SAP 4.6 c..If yes Could you please let me know how.
Thanks in Advance.
Murali Krishna K
Edited by: Murali Krishna Kakarla on Jan 26, 2008 7:09 PM
Edited by: Murali Krishna Kakarla on Jan 26, 2008 7:11 PMOlivier CHRETIEN wrote:>
> Hi Terry,
>
> So these function modules must use the SAPHTTPA RFC destination which uses the exe saphttp.exe ?
>
> How much abap code lines do you have for a web service call ?
> Do you have to code the call specifically for each different web service ?
> Are you able to use the WSDL ?
>
> Nice job if you have coded your own private SOAP runtime !
>
> But I don't think this is an easy solution for everybody...
>
> Regards,
>
> Olivier
Yes, SAPHTTPA (runs on application server) and/or SAPHTTP (runs on front-end pc), one of which, is required for HTTP communication. So far, nothing too elaborate as far as SOAP goes, but the logic is simplistic. Here's some sample code:
DEST = 'SAPHTTPA'.
TRANSLATE HOST TO LOWER CASE.
MYURL = 'wssrvTest/Service.asmx/GetByOrderItem'.
CONCATENATE HOST MYURL INTO MYURL.
REQUEST_HEADERS-DATA =
'Content-type: application/x-www-form-urlencoded'.
APPEND REQUEST_HEADERS.
CLEAR REQUEST_HEADERS.
*........Convert Order Number to External Format........................
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = ORDER
IMPORTING
OUTPUT = ORDER.
*........Convert Item Number to External Format.........................
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = ITEM
IMPORTING
OUTPUT = ITEM.
*........Convert Material Number to External Format.....................
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
INPUT = MATERIAL
IMPORTING
OUTPUT = MATERIAL.
CONCATENATE 'sOrder=' ORDER
INTO REQUEST_BODY-DATA.
APPEND REQUEST_BODY.
CLEAR REQUEST_BODY.
CONCATENATE '&sItem=' ITEM
INTO REQUEST_BODY-DATA.
APPEND REQUEST_BODY.
CLEAR REQUEST_BODY.
CONCATENATE '&sMaterial=' MATERIAL
INTO REQUEST_BODY-DATA.
APPEND REQUEST_BODY.
CLEAR REQUEST_BODY.
CALL FUNCTION 'HTTP_POST'
EXPORTING
ABSOLUTE_URI = MYURL
RFC_DESTINATION = DEST
BLANKSTOCRLF = 'X'
TABLES
RESPONSE_ENTITY_BODY = RESPONSE_BODY
REQUEST_ENTITY_BODY = REQUEST_BODY
RESPONSE_HEADERS = RESPONSE_HEADERS
REQUEST_HEADERS = REQUEST_HEADERS
EXCEPTIONS
CONNECT_FAILED = 1
TIMEOUT = 2
INTERNAL_ERROR = 3
TCPIP_ERROR = 4
DATA_ERROR = 5
SYSTEM_FAILURE = 6
COMMUNICATION_FAILURE = 7
OTHERS = 8.
CHECK SY-SUBRC = 0. "more appropriate msg goes here
LOOP AT RESPONSE_BODY.
IF RESPONSE_BODY+0(7) <> '<string' AND
RESPONSE_BODY+0(8) <> '</string' AND
RESPONSE_BODY+0(5) <> '<?xml'.
SPLIT RESPONSE_BODY-DATA AT '=' INTO FIELD_NAME FIELD_VALUE.
TRANSLATE FIELD_NAME TO UPPER CASE.
CASE FIELD_NAME.
WHEN 'HEIGHT'.
HEIGHT = FIELD_VALUE.
WHEN 'WIDTH'.
WIDTH = FIELD_VALUE.
WHEN 'LENGTH'.
LENGTH = FIELD_VALUE.
WHEN 'WEIGHT'.
WEIGHT = FIELD_VALUE.
WHEN 'QTY'.
QTY = FIELD_VALUE.
ENDCASE.
ENDIF.
ENDLOOP.
Hope this helps...
Terry
Edited by: Terry West on Feb 4, 2008 3:08 PM -
Possible to call a transaction from a planning book using a macro button?
Hi All,
Is it somehow possible to call a transaction using a macro button in the planning book? Also, the current selection should be passed as input parameters to the transaction.
In my example, I am trying to run the transaction /SAPAPO/MC90 - Release to Supply Network Planning from the Demand Planning Planning Book/Data View. This way if planners need to change forecasts mid month for specific selections, they can easily transfer to SNP without having to go out of interactive planning.
Thank you,
MariaHello Maria,
It's possible to call a transaction from a planning book using a macro button.
What you can do is ..... Create a function module and inside it use the command "Call Transaction Tcode" (ABAPer can do this) to call ur specific transaction. And this module can in turn be called from your macro. Please find the below link which explanis how to call a function module from a macro. Do let me know if you need more information on this.
Calling a function module from APO Macro
Regards,
Siva. -
It it possible to call web service from SAP 4.6 c..If yes how
Hi Friends,
It it possible to call web service from SAP 4.6 c..If yes how
Thanks in Advance.
Murali Krishna KIt is not possible to directly call a web service from SAP 4.6c.
Indeed, web service enablement is available as from Web AS 6.20, thus as from SAP R/3 4.7
So as described above, the solution is indeed to make use of PI(XI) for this.
Rgds,
Karim -
Is it possible to call ctx_doc.filter from Java?
Hello all,
Is it possible to call ctx_doc.filter from Java?
If so, do you have a code sample?
Thanks,
MarvinI have some Java code using ctx_doc.markup that can help:
try {
//make db conn
OracleCallableStatement stmt =(OracleCallableStatement)conn.prepareCall("begin "+
"ctx_doc.markup(index_name=>'text_idx', "+
"textkey=>?,"+
"text_query=>?,"+
"restab=>?,"+
"starttag=> '<a>',"+
"endtag=> '</a>' "+
"); " +
"end; ");
... // register other parameters
stmt.registerOutParameter(3, OracleTypes.CLOB);
stmt.execute();
oracle.sql.CLOB text_clob=null;
text_clob = ((OracleCallableStatement)stmt).getCLOB(3);
// read the CLOB by chunks
int chunk_size=text_clob.getChunkSize();
Reader char_stream = text_clob.getCharacterStream();
char[] char_array = new char[chunk_size];
for(int n=char_stream.read(char_array);n>0; n=char_stream.read(char_array)){
out.print(char_array);}
}catch (SQLException e) -
Is it possible to call Java routines from FMS?
Say I have a game package, most of which
are written in Java. I am thinking
to leave the core logics in Java, but
change the user interface into Flash,
and serve it over FMS. Now is it
possible to call Java routines from
FMS?
I'd appreciate any suggestions.Yes! You can use SOAP(or XML-RPC) to call Java routines.
Relevant link:
http://www.adobe.com/devnet/flashmediaserver/articles/fms_web_services_05.html
Btw, does anyone know if there is XML-RPC package for
FMS? -
Is it possible to call a movieClip from the Flash library using XML?
Instead of using "test_1.swf" or "test_2.jpg" in the <IMAGE> tags shown below, we are wanting to call a movieClip from the same library as the .FLA via XML.
Is this possible using XML and AS3?
< ?xml version="1.0" encoding="UTF-8"?>
< all>
< GROUP>
<IMAGE>test_1.swf</IMAGE>
<QUESTION>Question example #1</QUESTION>
<OPTION1>Option A example</OPTION1>
<OPTION2>Option B example/OPTION2>
<OPTION3>Option C example</OPTION3>
<IMAGE>test_2.jpg</IMAGE>
<QUESTION>Question example #2</QUESTION>
<OPTION1>Option A example</OPTION1>
<OPTION2>Option B example/OPTION2>
<OPTION3>Option C example</OPTION3>
< /GROUP>
< /all>data.xml:
< ?xml version="1.0" encoding="UTF-8"?>
< all>
< GROUP>
<IMAGE>MC1</IMAGE>
<QUESTION>Question example #1</QUESTION>
<OPTION1>Option A example</OPTION1>
<OPTION2>Option B example/OPTION2>
<OPTION3>Option C example</OPTION3>
<IMAGE>MC2</IMAGE>
<QUESTION>Question example #2</QUESTION>
<OPTION1>Option A example</OPTION1>
<OPTION2>Option B example/OPTION2>
<OPTION3>Option C example</OPTION3>
< /GROUP>
< /all>
// a.s.
var urlLoader:URLLoader=new URLLoader();
urlLoader.addEventListener(Event.COMPLETE,completeF);
urlLoader.load(new URLRequest("data.xml"));
function completeF(e:Event):void{
var xml:XML=XML(e.data);
var instance:*=stringToClassInstanceF(xml.GROUP.IMAGE[0]);
addChild(instance);
function stringToClassInstanceF(s:String):*{
var C:Class=Class(getDefinitionByName(s));
return new C(); -
Is it possible to call a package from DB in ADF?
Hi,
I am using Jdev 10.1.3.3 with ADF. I want to call a package from
my DB from jdev. Is it possible with ADF? Please let me know.
Thanks,
VenkiHi,
This is my code to call the package.
String amDef = "model.service.DAFService";
String config = "DAFServiceLocal";
ApplicationModule am =
Configuration.createRootApplicationModule(amDef, config);
CallableStatement cstmt = null;
String stmt = "begin call CP_DAF_PKG.DAF_PROCESS(?,?,?,?,?,?,?,?,?); end; ";
cstmt = getDBTransaction().createCallableStatement(stmt,0);
But in this case, I am getting
oracle.jbo.InvalidOwnerException: JBO-25301: Application module is not a root app module but has no parent
I understand the reason for this error. I need to call the
createcallableStatement from the application module that I have above.
Something like am. (call the package)
But not sure about any method which does that..
Please let me know if you know the way to solve it.
Thanks,
Venki -
Is it possible to call the jar from dll
Hi,
I am new to JNI, so please sorry if my question seems trivial.
I would like to know if is it possible the inverse task, to call java(jar) from dll.
ThanksThanks for reply,
I searched in forum threads and found necessary disscussions on this topic, and tried to call java class from c++, but after
CreateJavaVmProc JNI_CreateJavaVM =(CreateJavaVmProc)::GetProcAddress("C:\\Borland\\JBuilder2006\\jdk1.5\\jre\\bin\\client", "JNI_CreateJavaVM");I am having
error C2664: 'GetProcAddress' : cannot convert parameter 1 from 'char [46]' to 'struct HINSTANCE__ *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.error -
Is it possible to call C++ code from a HTML5 panel?
I have thousands of lines of C++ code that I need to reuse inside my HTML5 panel for Illustrator. Is it possible to call my C++ functions from within my HTML5 panel? Some kind of wrapper maybe?
Hi,
A possible solution is to dispatch CSXS events from your HTML panel, and listen to those events in your C++ code and then execute your C++ code.
Hui -
Is their a possibility to call SDK functions from TestStand directly?
Hello!
I want to call a function from the Windows SDK.
Is this possible?
Regards,
Brosig
Using TestStand 3.5 and Windows XPBrosig,
sadly i dont know what the error with the pdb-file could be. but as far
as i see from the description to the function found here, there should
be no such dependency.
please take a look into the "requirements"-section of the link. it
seems that kernel32.dll is sufficient for usage of the function. and
for myself, i never had such problems when using the kernel32.dll.....
one problem could be the type of the parameter you are using. i know
that there are sometimes odd issues on SDK when the parameters do not
fit exactly the needed type. so make sure that all strings are
null-terminated and the buffers you pass are preallocated!
Norbert B.
Edit: forgot the link.....
Message Edited by Norbert B on 12-22-2005 09:31 AM
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Is it possible to call a URL from a table entry
Hi Abap Experts,
Is it possible to call a URL when we double click on the record of a table
for example I have a table zmanifest in which if i double click on the tracking number(table field)
it should go to UPS website
Thanks & Regards,
Tharun.PHi
It depends on what you mean to do a doubleclick, i.e. where you want to do it?
If you mean a program created ad hoc, yes you can else I don't think
Max -
Possibility of calling standard actions from a java program
Hi ,
I am working for a project where customer wants to have option of saving orders as draft only and later convert to order if need be. However since we do not want many drafts to reside on server there is a need to delete these at a specified time. For draft orders I am using order templates since they stay in the database without getting converted to orders. Now I do not know how to go about the deletion part.
i need to write a program that would run on the server and which would fetch the templates (drafts) that have been created till a particular time and call the delete action of the template. Now the question is how do i call these actions from a java program where this java program will have to run on the server end (ie will be a backend process).
Please suggest.
Thanks
Roopalihello roopali,
you can create a separate thread that will run your
code that will check for stale drafts and delete them.
it is just like a session management program but here
we will be looking over the drafts and not the session
objects.
now if you want the invocation of the action from another
program, a socket program would suffice but opening ports
will cause you network connections thru firewall.
if you can make use of HTTP servlet as your service
provider e.g., you can then just pass some action params
to invoke it.
regards
jo -
Is it possible to call OAF Page from ADF Page
Hi,
Is it possible to open E-Business suite OAF page from ADF ??
Our requirement as follows:
In ADF page have the Order Number as hyper-link, if user click on hyper-link we have to pass Order_Id and open OAF page of Order Management in E-Business Suite. This OAF Page has has the corresponding Order Line for given Order_Id.
If this is possible, how authentication/security works between ADF and OAF. Is the user which as logged into ADF will authenticate in OAF Page also ? How it works ??
Thanks in advance.
Thanks,
SrikSHi,
Hope following useful
http://blogs.oracle.com/stevenChan/entry/oa_framework_or_adf
ADF Call from OAF -
** Is it possible to call a Proxy from BPM ?
Hi friends,
Our requirment is to take the thru JDBC (data required to create Sales Order) and call the Standarad BAPI 'BAPI_SALESORDER_CREATEFROMDAT2'. Since BAPI is not able to handle multiple sales order, we want to use this BAPI in inbound proxy and want to call from BPM.
Since we want to call continuous BAPIs one by one, (Sales Order, Delivery, Invoice) we want to design this scenario using BPM.
I understand that we are not able to create proxy for Abstract Interfaces. BPM only understands abstract interface. In this case, how do we call proxy from BPM? Is there any other possibility?
Kindly reply friends.
Kind Regards,
Jegatheeswaran P.hey,
yeah its possible..
Check this.
/people/vanita.thareja2/blog/2006/05/23/bpm-sending-message-asynchronously-and-getting-the-response-from-synchronous-system-using-abap-proxies
These replies too..
Proxy in BPM
BPM file to ABAP proxy
Thanks,
Vijaya.
Edited by: Vijaya Lakshmi Palla on Jun 4, 2008 5:32 AM
Maybe you are looking for
-
RMAN duplicate db Standard Edition
As many of you know, Oracle Standard Edition license allows only one channel for RMAN. Given this restriction, is it still possible to perform database duplication using RMAN? I read that you need at least an auxiliary channel. Please comment...
-
Toolbar doesn't work in Browser
Hi, I have a student on a Windows 7 operating system, with the latest version of Adobe Reader X. When she tries to view a pdf in the browser (latest Firefox or Internet Explorer) with form fields, the majority of icons on the toolbar do not work. Cli
-
Changing of default values on the selection screen dynamically
Hi, I have 2 radiobuttons R_A & R_B and i have one text field like P_TEXT. Based on selection of radio button i have to change the default values in P_TEXT on the selection screen. like if i select R_A i have to display P_TEXT = 'A'. if i selec
-
Track error records in Call Transaction method
Hi I have used call transaction method for uploading legacy data. I need to track the error record. Please help me to find out the solution. Thanks in advance Reagards shriraam
-
Problem with certain BBC Podcasts in the UK
I've been subscribing to alot of the BBC Radio 1 Podcasts in the UK (I live here and have had no problems downloading them before), however certain ones simply won't allow me to download. Instead I get a short clip saying 'Sorry, this podcast is only