(imported comment written by jeko1791)
Lee Wei,
This relevance clause is working on some systems but not others, and I cannot figure out what’s different between them. This is what we’re looking for, in order:
- previous folder called out_dr on any drive to re-use as our OUT_DIR parameter
- first available non-system drive with greater than 2GB free space to use as our OUT_DIR
- system drive to use as our OUT_DIR
We’re embedding it into our Action Script as such:
if {exists folder “out_dr” of drives whose (type of it = “DRIVE_FIXED”)}
parameter “OUT_DIR”="{pathname of folder “out_dr” of drives whose (type of it = “DRIVE_FIXED”)}"
parameter “OUT_DIR_2K8”="{name of drive of folder “out_dr” of drives whose (type of it = “DRIVE_FIXED”)}"
elseif {exists drive whose (name of it != name of drive of system folder AND type of it = “DRIVE_FIXED” AND (free space of it / 1024 / 1024) as integer > 2000)}
parameter “OUT_DIR”="{(it & “:”) of hexadecimal string ((it as string) of minimum of ((preceding text of first “:” of it as hexadecimal) as integer) of names of drives whose (name of it != name of drive of system folder AND type of it = “DRIVE_FIXED” AND (free space of it / 1024 / 1024) as integer > 2000)) & “\OUT_DR”}"
parameter “OUT_DIR_2K8”="{(it & “:”) of hexadecimal string ((it as string) of minimum of ((preceding text of first “:” of it as hexadecimal) as integer) of names of drives whose (name of it != name of drive of system folder AND type of it = “DRIVE_FIXED” AND (free space of it / 1024 / 1024) as integer > 2000))}"
else if {exists drive whose (name of it = name of drive of system folder AND (free space of it / 1024 / 1024) as integer > 2000)}
parameter “OUT_DIR”="{name of drive of system folder & “\OUT_DR”}"
parameter “OUT_DIR_2K8”="{name of drive of system folder}"
endif
We’re getting a syntax error on some systems at this line after the first elseif:
parameter “OUT_DIR”="{(it & “:”) of hexadecimal string ((it as string) of minimum of ((preceding text of first “:” of it as hexadecimal) as integer) of names of drives whose (name of it != name of drive of system folder AND type of it = “DRIVE_FIXED” AND (free space of it / 1024 / 1024) as integer > 2000)) & “\OUT_DR”}"
It seems to be failing only on systems with several fixed disks with > 2GB free space. But, I’ve seen it work on other systems that have several non-system drives with > 2GB free space, so I’m not sure that’s why it’s failing.
Any ideas?