Digging around in the undergrowth

All flavors welcome.
Forum rules
Be kind.
Post Reply
User avatar
richmond62
Posts: 2771
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Digging around in the undergrowth

Post by richmond62 »

Erm . . . any idea where I have gone wrong:
-

Code: Select all

on mouseUp
   set the itemDelimiter to TAB 
   answer file "Choose a text .tsv spreadsheet file:" with (specialFolderPath("/Users/richmond/LiveCode/LiveCode Community 9.6.3.app/Contents/Tools/Toolset/resources/supporting_files/property_definitions/") ) with type "Text TSV|tsv|" 
   if it = empty then exit to top
   set the text of fld "fGUFF" to URL ("file:" & it)
end mouseUp
And I will apologise in advance for using LC 963 rather than a recension of OXT or OXT Lite; but I want to work with something 'virgin' for this.

This does NOT take to that folder, but to the most recent folder my IDE has been saving things to.
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1537
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Digging around in the undergrowth

Post by tperry2x »

You have to remove the SpecialFolderPath

you can only use specialfolderpath("one_of_the_following")
"home": The current user's home folder
"desktop": The current user's desktop folder
"preferences": The current user's preferences folder
"documents": The current user's documents folder
"support": The current user's application-specific data folder
"system": The System Folder (usually /System)
"fonts": The folder that contains fonts
"temporary": The folder where temporary files can be placed
"engine": The folder containing the OpenXTalk engine and the executable files copied in the standalone application
"resources"

Something like:

Code: Select all

on mouseUp
   set the itemDelimiter to TAB
put specialFolderPath("home") into tMyHomeFolder
   answer file "Choose a text .tsv spreadsheet file:" with (tMyHomeFolder & "/LiveCode/LiveCode Community 9.6.3.app/Contents/Tools/Toolset/resources/supporting_files/property_definitions/" ) with type "Text TSV|tsv|" 
   if it = empty then exit to top
   set the text of fld "fGUFF" to URL ("file:" & it)
end mouseUp
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests