Search found 9 matches

by pradeepnitp
Fri Sep 19, 2014 8:55 pm
Forum: Scripting
Topic: Finding Image Height Widht
Replies: 9
Views: 4796

Finding Image Height Widht

If you can share it. It will be great help for me.



I
by pradeepnitp
Fri Sep 19, 2014 6:52 pm
Forum: Scripting
Topic: Finding Image Height Widht
Replies: 9
Views: 4796

Finding Image Height Widht

HI Thanks , I am new to scripting .

But which flow element should I select for writing private data.
by pradeepnitp
Wed Sep 17, 2014 9:45 pm
Forum: Scripting
Topic: Finding Image Height Widht
Replies: 9
Views: 4796

Finding Image Height Widht

Thanks . But which flow element should I select for this and how I can use this in script .



I tried with below code in script

var imageWidth = job.getVariableAsNumber("[Photo.PixelXDimension]");



It is giving error Photo Object is not recognized.
by pradeepnitp
Tue Sep 16, 2014 5:10 pm
Forum: Scripting
Topic: Finding Image Height Widht
Replies: 9
Views: 4796

Finding Image Height Widht

hi , I have a image and have to find the image height & widht and then based on that I need to process further . Is this possible from enfocus inbuilt variables. Or do I have to call external command to fetch this value. I see Photo.PixelXDimension in script option but don't know how to use it .
by pradeepnitp
Fri Mar 28, 2014 7:58 pm
Forum: Scripting
Topic: Process.execute command error
Replies: 4
Views: 2560

Process.execute command error

HI Freddy Semicolon was miss in typing .



Actually I need to do other stuffs inside cmd file .I thought of testing with small directory creation and even this is not working .
by pradeepnitp
Fri Mar 28, 2014 10:47 am
Forum: Scripting
Topic: Process.execute command error
Replies: 4
Views: 2560

Process.execute command error

I have one cmd file which I want to execute via switchScripter Switch Scriptercode is as below var t = new Array("E:Enfocus_Flows_Testtest.cmd"); Process.execute(t) This is always returning 1 and folder is also not created If I run the cmd file manually then it is running fine. test.cmd co...
by pradeepnitp
Wed Mar 19, 2014 11:16 am
Forum: Scripting
Topic: Rename file in local directory
Replies: 4
Views: 1901

Rename file in local directory

Thanks . It's working .
by pradeepnitp
Tue Mar 18, 2014 6:55 pm
Forum: Scripting
Topic: Rename file in local directory
Replies: 4
Views: 1901

Rename file in local directory

HI , This is not working as the file that I want to rename is not a input job . I need to rename a file which is placed in local drive and not comming from job. What I tried is var fbxCompletePath = "E:Pradeeptest.fbx" ; var newJob = s.createNewJob(fbxCompletePath); var oldFileName = newJo...
by pradeepnitp
Tue Mar 18, 2014 3:26 pm
Forum: Scripting
Topic: Rename file in local directory
Replies: 4
Views: 1901

Rename file in local directory

hi ,

I have a csv file as job and by reading this file I am navigating to local directory .I need to rename the files based on content of csv file .

I am using switch scripter for reading the csv file .

Is there any option to rename the file on local disk using switch javascript.