Topic Options
#37486 - 10/12/11 11:05 AM Array type directory
Pablete1167 Offline
OL Newbie

Registered: 10/12/11
Posts: 3
I need to use a variable type directory but i need the third parameter of the syntax is a variable
My command is:

set(&pathImg, 'D:\\samples planetpress\\8006147405\\*.JPG')
define( &image_paths, directory, &pathImg)
show(&image_paths[0])

But it does not display anything
Can help me?


Edited by Pablete1167 (10/12/11 11:09 AM)

Top
#37492 - 10/12/11 05:01 PM Re: Array type directory [Re: Pablete1167]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4953
Loc: Objectif Lune Montreal
Pablete1167,

It looks like you have the correct syntax. However, is the D: drive a local or a network drive? If it's a network drive, you may need to use a UNC format path instead to access it. Also make sure you are running the job in Optimized PostScript, this will not work in Printer Centric.

Regards,
Raphaël Lalonde Lefebvre

Top
#37497 - 10/13/11 10:03 AM Re: Array type directory [Re: Raphael Lalonde Lefebvre]
Pablete1167 Offline
OL Newbie

Registered: 10/12/11
Posts: 3
Thanks, When I directly write path, if it works correctly, but when I use a variable in the third parameter does not work.

ej:
define( &image_paths, directory, 'D:\\samples planetpress\\8006147405\\*.JPG')
IT WORK

set(&pathImg, 'D:\\samples planetpress\\8006147405\\*.JPG')
define( &image_paths, directory, &pathImg)
IT DOES NOT WORK

Top
#37502 - 10/13/11 10:50 AM Re: Array type directory [Re: Pablete1167]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4953
Loc: Objectif Lune Montreal
Pablete,

I've seen this issue before where arrays couldn't be defined if a variable was used to create it. However, I've tried it yesterday, and it seemed to be working. This was the latest 7.3.1, however, so maybe in version 6 it was still not working, and they fixed this in 7.3.1.

Regards,
Raphaël Lalonde Lefebvre

Top
#37516 - 10/13/11 02:13 PM Re: Array type directory [Re: Raphael Lalonde Lefebvre]
Pablete1167 Offline
OL Newbie

Registered: 10/12/11
Posts: 3
Thanks
I am evaluating the version of demo 6,0, but you assure to me that version 7.3.1 supports this, no problem, I am going to continue evaluating Planetpress before buying the last version

Top