Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CASL MACRO EXAMPLE

Status
Not open for further replies.

Yoxy99

MIS
Jul 28, 2007
23
US
Hey All, Im new to CASL scripting language and I was wondering if someone could give me an example of a macro that would download a file, rename it and then download it to my hard drive?
 
Download from where?

[thumbsup2] Wow, I'm having amnesia and deja vu at the same time.
I think I've forgotten this before.


 
We use File Xpress and every day I have to download files from a server to my hard drive and I was wondering if I could automate this process with a CASL macro. I download the files from the INFOConnect session by clicking the file and download and then I rename it and download it to my hard drive, hopefully there is a way to automate this.
 
Sorry I am not familiar with File Xpress. Can you record the steps via Tools> Learn Casl Macro *perform steps manually* Tools> Stop Casl Learn and post the code?

[thumbsup2] Wow, I'm having amnesia and deja vu at the same time.
I think I've forgotten this before.


 
I was also wondering about that too, because I got the generic hello macro that came with Attachmate to work on startup but the problem is that the session that I want to put the macro on does not have "Learn CASL Macro" option on it, it only has the "CASL Macro" option, is there a way to change the settings to Add the Learn CASL Macro option?
 
AFAIK, it is controlled by your security file .asf You would need a copy of a security file with permisions to allow it.

[thumbsup2] Wow, I'm having amnesia and deja vu at the same time.
I think I've forgotten this before.


 
CASL does have some functionality to run different applications, but it's not great. You would type
Code:
Run "C:/AnyFile.exe"
As far as I know, you cannot run a file that has any spaces in the file path, so you might need to move your exe around, if possible. I also don't think you can pass arguments to another application; you can run the executable. I would investigate a scheduled task instead; if you use windows, you should be able to create a scheduled task that runs automatically.

[blue]Never listen to your customers. They were dumb enough to buy your product, so they have no credibility. - Dogbert[/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top