Stephen and Steve

Thanks for your help on the file dialog. Much appreciated.

Bruce

Stephen Wonfor wrote:
Bruce

Here's what I got back on Mac OS X

file:../../Desktop/100 Geek Quotes To Know.txt
filemac:/Wonfuji/Users/stephen/Desktop/100 Geek Quotes To Know.txt

the Windows path will be, as it is, same same but different. ;-)

Stephen

----------

"The major difference between a thing that might go wrong and a thing that cannot 
possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it 
usually turns out to be impossible to get at or repair." - Douglas Adams

On Jan 12, 2010, at 2:28 PM, Stephen Wonfor wrote:

Bruce

Quick reply as I'm out the door, but you could have them insert the file by 
reference into a global container field then use GetAsText(ContainerField).  
The GetAsText calc will have the file path - may need some cleanup or parsing 
but the path will be in there.

via rough script concept...

InsertFile[_gContainerField; By Reference]  / /do not specify source as this 
will force a dialog for the user
SetField[_gtFilePath; GetAsText(ContainerField)  //now you have a path - you 
could also SetVariable
SetField[_gContainerField;""] //you have the path and no longer require the 
file in the container

This is untested in real life but seems logical in concept...

Stephen


"Rivers know this: there is no hurry.  We shall get there someday." --- A.A. 
Milne

On Jan 12, 2010, at 2:18 PM, Bruce Button wrote:

Can anyone tell me: what is the best way to present a user with a standard file 
selection dialog box (Windows) from which to choose a file or folder, with the 
result being returned as a text string? Is it possible to do this without a 
plugin?

Thanks in advance.

Bruce Button


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 4765 (20100112) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




Reply via email to