Run the automator script in a shell command
Hello
I would like to start an automator script in a command shell with the automator command (see automator man).
I would like to pass an argument to the script (such as a list of files) too much with the i - settings but my syntax has failed. This is my test written in AppleScript script:
on run tell application "Finder" set theSelection to selection set theFile to theSelection's item 1 as alias set thePath to quoted form of POSIX path of theFile log thePath set theWorkflow to quoted form of "/Users/conmeubonailleuco/Library/Mobile Documents/com~apple~Automator/Documents/Encode Audio Files.workflow" set theAutomatorScript to "automator " & theWorkflow & " -i (" & thePath & ")" do shell script theAutomatorScript end tell end run
theAutomatorScript the value "-i «& path & space & theWorkflow» automator
Tags: Mac OS & System Software
Similar Questions
-
need help to run the perl script invoking ESX ssh command power CLI
I tried with the VCLI function call, but my perl script does not work... If I want to download my script for ESX (not ESxi) perl file, then run the command that will display the value in the directory/tmp, then pull the output file in/tmp local VC no matter what directory
something like this article using plink.exe http://communities.VMware.com/message/1260100#1260100
comm and I want to run ""iam_extract_global.pl perl - customer < customer name > - /tmp/xxxxxx.mef outfile " "
so I need pul /tmp/xxxxx.mef to the local directory
Try to place the string values in the first 3 lines in quotes.
$User = "root".
$Pswd = "xxxxx".
$ESXname = "xxxxxxx". -
Hello
If I run the calc script to aggregate a BSO cube, it blocks and release each block in a few seconds? Or is it keep held locked blocks even after aggregation for this block is over?
For example if I correct sparse dimensions Forecast, FY15, dec. and my accounts dimension is only dense, after calc has my senior level members in the accounts, it it will issue after updating (i.e. in fractions of seconds) or is agg keep it held in a lock?
I ask because I want to run scripts tot., but there is the update of our cube users. I never had a problem to start agg, while users are updating. But maybe I am lucky. If a user updates a closed block, they will receive an error message that I think. They may try to update again after a few seconds, I hope.
Thank you.
Locking behavior for BSO Essbase is described in the database administrator's Guide: http://docs.oracle.com/cd/E57185_01/epm.1112/essbase_db/dstinteg.html
It is certainly theoretically possible that a user can obtain a lock because of a calc, although I can't say I saw him be a problem in real-world applications (perhaps because access uncommitted is the default).
-
Run the PLSQL Script from Batch file
I am trying to run a PL/SQL script in a batch file in sp1 Windows 7 Prof
N ° 1) I wrote a simple PL/SQL script:
--
-The scope of variables
--
DECLARE
v_sal number (7.2): = 50000;
v_comm number (7.2): = v_sal *. 20;
v_message varchar2 (100): = 'eligible for the commission;
BEGIN
declare
v_sal number (7.2): = 50000;
v_comm number (7.2): = 0;
v_total_comp number (7.2): = v_sal + v_comm;
Start
v_message: = "not committed not" | v_message;
dbms_output.put_line (' message of sub-block is ' | v_message);
dbms_output.put_line (' subblock v_comm is ' | v_comm);
end;
v_message: = 'seller '. v_message;
-dbms_output.put_line ('Main block v_total_comp' | v_total_comp); -Error: not visible in the main block
dbms_output.put_line ('Main block v_comm' | v_comm);
dbms_output.put_line (' main block message is ' | v_message);
END;
/
Step 2) then I wrote a simple batch TstBatch.bat file
sqlplus scott/tiger@orcl < PLSqlVarInputTst1.sql > > TstBatch.log
Step 3) in the BACK of cmd, I tried to run TstBatch.bat
C: > TstBatch.bat
The log file tells me that I have connected to Oracle Database 11 g Enterprise Edition Release...
Then a lot of SQL > SQL > SQL >... 26 times
Procedue of PL/SQL completed successfully.
Disconnected from Oracle database
I also tried running the PLSQL script in SQLPlus:
SQL: > @PLSqlVarInputTst1.sql
Tell me the procedure completed successfully.
QUESTION: So, where is the output of the PL/SQL script?
Hello
You must activate the output: Add the following line at the beginning of your PL/SQL script:
SET SERVEROUT ON
...
-
Keyboard shortcut to run the last Script?
Anyone know of a keyboard shortcut to run the last script that was executed? I'm editing an animation and wrote a script that writes code based on it, and I need a quick way to run it without the open file dialog box.
Thank you!
Method 1:
You can assign shortcut keys to the first 20 scripts listed under the file > Scripts menu via the file «Adobe after effects 10.5 shortcuts» Just search for "ExecuteScript' in the shortcuts file find the section.
Method 2:
You can use ft_ToolBar which allows to launch scripts with the click of a button. You can also create a new button and just paste your script code directly in the window provided without having to create a jsx/jsxbin file.
-
How to run a procedure ODI of a shell command?
Hello
Is it possible to perform the procedure ODI of a shell command? How?
I would like to invoke the execution of the second another batch processing procedure, we have tips.
Thank you.You can create the scenario of the ODI procedure and call this scenario using the startscen at the command prompt,
before that make sure that you odiparams file is updated. -
Elements 4.0: run the postflight script fails
I ALMOST built Elements 4.0 as root on Mac OS 10.5.6 successfully (CPU PPC G5). Towards the end of construction, I see 'missing file' then 'cannot run the postflight script.
Any ideas? Thank you.
-
How to run the powershell script of command with several parameters
Is there a way to run a powershell script from the dialog box run with several parameters? In addition, the path to the script contains spaces, for example, c:\powershell scripts\script.ps1.
Take a look at http://www.powershell.nu/2009/12/16/running-scripts-with-arguments-in-powershell/ which explains how to pass arguments to a script.
André
-
Need to run the Calc Script in sequence in MAXL
Hello
I need a idea how to run calc in sequence through Maxl scripts. My requirement is to run calc script loads after the end of the last. I try to make the method below, but some how its not working. I'd appreciate any help.
Thank you
login password admin on ServerName.
spool to 'K:\test\MXLTest.log ';
/ * Calculate * /.
run the calculation App.db.Test;
function SIERREUR 'error ';
run the calculation App.db.Test2;
set the label 'error ';
spool off;
disconnection;
"exit";
Seems iferror works only with the batch/shell script. I was trying to run EAS.
-
Running the logon script after AnyConnect VPN connection
Is it possible (such as the Launcher on the IPSec client) to run a login script after establishing a VPN connection? When a user connects to the VPN client AnyConnect I need to be able run a login script to map drives. I looked the ASDM, but see anywhere that it seems that this would be configured. I thought I would check to make sure I'm not missing something.
We lack ASA IOS v8.2 (2), ASDM 6.2 (5).
Thank you.
You can learn more about the AnyConnect script capabilities on the link below...
-
How to close all windows after running the SaveAsPDF script?
I ran into the problem where I adjusted the SaveAsPDF script to backup my PDF files with a preset specific PDF I use. But after executing the script, all newly created PDF files are open in illustrator and I have to close it manually one by one, choose if I want to 'Save' or 'do not save' (even if they are already registered). I would like for them to close right after that the PDF is created.
I've added in the script:
if (myFile.open("w")) { myFile.close(SaveOptions.DONOTSAVECHANGES); }
Who's going to run the script and close the files, but for only 3 of the 10, I opened. The 7 remaining won't be saved or converted to PDF. Is there something wrong in my script or anything else that I can try to solve this problem?
Here is my complete script:
/** Saves every document open in Illustrator as a PDF file in a user specified folder. */ // Main Code [Execution of script begins here] try { // uncomment to suppress Illustrator warning dialogs //app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS; if (app.documents.length > 0 ) { // Get the folder to save the files into var destFolder = null; destFolder = Folder.selectDialog( 'Select folder for PDF files.', '~' ); if (destFolder != null) { var options, i, sourceDoc, targetFile; // Get the PDF options to be used options = this.getOptions(); // You can tune these by changing the code in the getOptions() function. for ( i = 0; i < app.documents.length; i++ ) { sourceDoc = app.documents[i]; // returns the document object // Get the file to save the document as pdf into targetFile = this.getTargetFile(sourceDoc.name, '.pdf', destFolder); // Save as pdf sourceDoc.saveAs( targetFile, options ); sourceDoc.close(); } alert( 'Documents saved as MarkPreset PDF' ); } } else{ throw new Error('There are no document open!'); } } catch(e) { alert( e.message, "Script Alert", true); } /** Returns the options to be used for the generated files. @return PDFSaveOptions object */ function getOptions() {var NamePreset = 'MarkPreset'; // Create the required options object var options = new PDFSaveOptions(); options.pDFPreset=NamePreset; // See PDFSaveOptions in the JavaScript Reference for available options // Set the options you want below: // For example, uncomment to set the compatibility of the generated pdf to Acrobat 7 (PDF 1.6) // options.compatibility = PDFCompatibility.ACROBAT7; // For example, uncomment to view the pdfs in Acrobat after conversion // options.viewAfterSaving = true; return options; } /** Returns the file to save or export the document into. @param docName the name of the document @param ext the extension the file extension to be applied @param destFolder the output folder @return File object */ function getTargetFile(docName, ext, destFolder) { var newName = ""; // if name has no dot (and hence no extension), // just append the extension if (docName.indexOf('.') < 0) { newName = docName + ext; } else { var dot = docName.lastIndexOf('.'); newName += docName.substring(0, dot); newName += ext; } // Create the file object to save to var myFile = new File( destFolder + '/' + newName ); // Preflight access rights if (myFile.open("w")) { myFile.close(SaveOptions.DONOTSAVECHANGES); } else { throw new Error('Access is denied'); } return myFile; }
Try this change
for (i = 0; i< app.documents.length;="" i++="" ) ="">
for (i = app.documents.length; i > 0; i--)
-
Run the Ant script using Java in webcenter Portal
Hi all
I have requirement where I have to run an ant script using java or by any means to the webcenter portal.
Ant script must be run on a triggering action.
Please help me in this direction.
Thank you and best regards,
Shakir
Hey all,.
Here is the solution, I had finally
BuildFile file = new File ("myBuild.xml");
Project p = new Project();
p.setUserProperty ("ant.file", buildFile.getAbsolutePath ());
ConsoleLogger DefaultLogger = new DefaultLogger();
consoleLogger.setErrorPrintStream (System.err);
consoleLogger.setOutputPrintStream (System.out);
consoleLogger.setMessageOutputLevel (Project.MSG_INFO);
p.addBuildListener (consoleLogger);
p.init ();
ProjectHelper helper = ProjectHelper.getProjectHelper ();
p.addReference ("ant.projectHelper", assistance);
Helper.Parse (p, buildFile);
p.executeTarget (p.getDefaultTarget ());
Kind regards
Shakir
-
Batch file to run the MaxL script
Hi all
Can someone tell me please how to run a MaxL script by using a batch file in Windows (XP). I use Essbase 11.1.1.3.
It would be great if someone could send a .bat file, I'm not sure of the syntax.
See you soon,.
SahilJohn gives you the right way re the Ref Tech.
If you want the code, you can check my post (a bit old but still perfectly usable) here:
http://camerons-blog-for-Essbase-hackers.blogspot.com/2009/07/fixing-plannings-filters.htmlYou can download the code via this post as well.
Kind regards
Cameron Lackpour
-
Compensation of the sequences, run the sql script
Hello
I use OWB 10.1.0.4.0 and I use a sequence to create a surrogate key in my paintings. For the tabels deleted during the process, I want these sequences set to 1 again.
Is it possible to run an sql script in a mapping or the flow of process (with a drop, create, grant the declaration for the sequence)?
Thanks in advance,
ArjanWrite these SQL statements in a procedure and the procedure in the import map.
-
Problem in running the Perl script by oracle
Hello
I am facing a problem in the perl script.
«I have a perl script which is interacting with the sybase database.» We have migrated successfully to the sybase database to oracle. Now, I want to change the perl script to interact with the oracle database.
I use code like this to the interaction of the oracle database
Old Code with sybase database: use DBI::Sybase:GFAS;
New oracle database code: use DBI::oracle:GFAS;
When I execute the script perl, its display of the mentioned below error:
Cannot find DBI/oracle.pm in @INC (@INC contains: C:\oracle\product\10.2.0\db_1)
\perl\5.8.3\lib\MSWin32-x86 C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib/mswin32
x 86-multi-thread C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib C:\oracle\product
\10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86 C:\oracle\product\10.2.0\db_1\perl\site\
5.8.3 C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib/MSWin32-x86-multi-thread
C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib C:\oracle\product\10.2.0\db_1
\sysman\admin\scripts C:/Perl/lib C: / Perl / site / lib.) on line 4 of the hello.pl.
BEGIN failed--compilation abandoned at hello.pl line 4.
Anyone has any idea about this error.
Thanks in advance.If you look in the oracle in the perl\site\5.8.3\lib\MSWin32-x86-multi-thread directory, you will see two directories. Once is DBI and DBD is.
Everything you need in your perl program is a line 'using the DBI '. It will use DBD automatically as needed. You can specify the necessary connection information when you cause the DBI-> connect statement.
I managed to connect to the Oracle database and perform DML through the software installed by default. You don't need to download and install anything else.
I'm no expert, so maybe it lacks some features by using the interfaces supplied by Oracle, but for my needs, it sufficed to perl.
I hope this helps.
Maybe you are looking for
-
Only on firefox in my yahoo account, the magnification exceeds the display screen. It is a nuisance. I want to read the screen in a blow without had to keep scrolling to the right. How can I reduce the magnification on firefox. This does not happen o
-
Open file .lvm while the program is running
How to open a .lvm file in my program? I tried to use the dialog box file open/create/replace with file dialog box by specifying the path and I can get to the point to select the path, and it does not open the file.
-
My computer is running slowly. Sometimes, when several programs are open the computer will just restart. I ran a free program offered by Gateway but do not know if the program does what it says it will and I don't want to pay for something that proba
-
I can't synchronize with Hotmail, Outlook Express.
original title: outlook express I have trouble sending and syncronize account on Hotmail. He says I need vairafiy (exuse my spelling) my user name and password. Help please!
-
Outlook Express 6 spelling checker stopped working
I have Outlook Express 6 on XP Home SP3. The spelling checker feature has recently stopped working. The icon is there, but it is grayed out. I tried to remove the icon from the toolbar Customize the function and then adding again. When I add agai