Thanks for your reply, Stephen.

Sorry for not being clear. I'm wanting to do this from a web page hosted on the on-rev.com site, using the <?irev> scripting language with the revignitor framework. The "clients" have no LC client installed other than a web browser.

One of my frustrations of using on-rev and the scripting language is that there does not seem to be any documentation clearly showing what LC features are _not_ available through the server scripting language. But it is still far easier for me to use than php.

I have tried, of course, setting the full path/filename of the files I want to download, but it has not worked correctly so far... hence the post!

Many thanks,

Tim Selander
Tokyo, Japan

On 3/25/12 1:29 AM, stephen barncard wrote:
not clear about your methodology on the download.. you might need to set
the defaultFolder

are use using RevBrowser in some way or is this a  LC client app on the
client and RevIgniter on the host?

anyway for detection of a folder on the client machine (from the docs)
if there is a folder [filepath] then go card ID 3445

The folderPath specifies the name and location<glossary/f/200.xml>  of a
folder<dictionary/property/1981.xml>  you want to check. If you specify a
name but not a location, LiveCode looks for the
folder<dictionary/property/1981.xml>in the
defaultFolder<dictionary/property/1981.xml>.


Delete works the same way:


delete file "My Test.rev"


the defaultFolder works for this command too. Errors should be in the
result - this deletes immediately, and file is not put into the trash.



On 24 March 2012 00:29, Tim Selander<selan...@tkf.att.ne.jp>  wrote:

Hi,

Have wasted enough hours -- time to ask the pros on the list!

We are passing out free, promotional MP3 players to our customers.

Weekly, they will be allowed to download from our web site (hosted at
on-rev.com) new free mp3 files not available to the general public. Want
customers/users of our web page to be able to click one button to download
a set of files to specific folder -- the mp3 player, for which we know the
volume name (set up before sending out the players).

Want to check for the volume's existence (player is/is not mounted on
computer) and then download the list of mp3s to it, failing with an error
message if the player is full.

I can get the files to download, but only to the download folder specified
by the browser.

1) How can I set the path for the download using 'raw' irev/lc scripting,
or revigniter?
2) How can I first check for existence of volume?
3) (Bonus points!) How can I erase files off the volume/players? (Of
course only erasing files gotten from us -- known filenames -- and with
their permission.)

Any help appreciated.

Tim Selander
Tokyo, Japan

______________________________**_________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>





_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to