Thanks a lot Klaus. :D
Adding QUOTE works perfectly. As well as using the function you've wrote. :D
...
put QUOTE & "/Users/me/Documents/test v1/test with spaces.html" & QUOTE into tFile2Touch
get shell("touch -mt 201201010000" && tFile2Touch)
...
Cheers. :D :lol: :P :) :mrgreen:
Search found 14 matches
- Thu Jan 03, 2013 4:51 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: How to change a file’s last modified on Mac OSX
- Replies: 4
- Views: 4518
- Thu Jan 03, 2013 4:14 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: How to change a file’s last modified on Mac OSX
- Replies: 4
- Views: 4518
Re: How to change a file’s last modified on Mac OSX
Thanks Klaus :D and happy new year :!:
Concerning escape the filename if it contains spaces, is that applicable to folder names with spaces as well?
...
put "/Users/me/Documents/test v1/test with spaces.html" into tFile2Touch
get shell("touch -mt 201201010000" && tFile2Touch)
...
Thanks again.
Concerning escape the filename if it contains spaces, is that applicable to folder names with spaces as well?
...
put "/Users/me/Documents/test v1/test with spaces.html" into tFile2Touch
get shell("touch -mt 201201010000" && tFile2Touch)
...
Thanks again.
- Wed Jan 02, 2013 12:42 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: How to change a file’s last modified on Mac OSX
- Replies: 4
- Views: 4518
How to change a file’s last modified on Mac OSX
Hello,
I'm new with Mac OSX and Live Code and would like to know how to change a file’s last modified on Mac OSX. I tried the command below but it seems it doesn't work:
- launch touch -mt 201201010000 "/Users/ me /Documents/test.html" with "/Applications/Utilities/Terminal.app"
Could you kindly ...
I'm new with Mac OSX and Live Code and would like to know how to change a file’s last modified on Mac OSX. I tried the command below but it seems it doesn't work:
- launch touch -mt 201201010000 "/Users/ me /Documents/test.html" with "/Applications/Utilities/Terminal.app"
Could you kindly ...
- Thu Feb 17, 2011 4:09 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: how to find string using wild card?
- Replies: 5
- Views: 5751
Re: how to find string using wild card?
Thanks Jean-Marc. I was away for quite sometime and almost forgot what I post. But now, I'm back.
Thanks again.
- Tue Feb 08, 2011 12:08 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: how to find string using wild card?
- Replies: 5
- Views: 5751
how to find string using wild card?
Hi,
I am new and would like to know how can I find in the field using a wild cards, such as * or ?. (In other program, * is equivalent to any characters or number in any numbers and ? is equivalent to any char or number for 1 character.)
For example, I would like to find string in field Filenames ...
I am new and would like to know how can I find in the field using a wild cards, such as * or ?. (In other program, * is equivalent to any characters or number in any numbers and ? is equivalent to any char or number for 1 character.)
For example, I would like to find string in field Filenames ...
- Wed Dec 22, 2010 3:15 pm
- Forum: Internet
- Topic: FTP download?
- Replies: 16
- Views: 22362
Re: FTP download?
Thanks Klaus :). Now it's working in Windows. This is my first time to do this kind of programming. In my other program, it's synchronous so I can debug line by line but using LiveCode, debugging under callbackMessage stops the loop (which I think happened to me when I debug it and thought that it ...
- Wed Dec 22, 2010 11:00 am
- Forum: Internet
- Topic: FTP download?
- Replies: 16
- Views: 22362
Re: FTP download?
Hi Klaus,
I've implemented your code and it's now working - downloading then afterwards, update the file's modification date. Thanks.
Now, I don't know where to put the command - answer "Download completed!"? Is there a command or function when the callback function ends? We have noted that ...
I've implemented your code and it's now working - downloading then afterwards, update the file's modification date. Thanks.
Now, I don't know where to put the command - answer "Download completed!"? Is there a command or function when the callback function ends? We have noted that ...
- Mon Dec 20, 2010 4:36 pm
- Forum: Internet
- Topic: FTP download?
- Replies: 16
- Views: 22362
Re: FTP download?
Thanks again Klaus. I will do it after I finished some other urgent work. Hopefully, in 2 days... i'll come back again.
Cheers.
Cheers.
- Mon Dec 20, 2010 3:05 pm
- Forum: Internet
- Topic: FTP download?
- Replies: 16
- Views: 22362
Re: FTP download?
Thanks again Klaus, I will try your suggestion later. I'm a bit confused about putting all the code under the case "cached" and not under "downloaded". Is it correct?
Anyhow, I was also looking on the command "wait until the status is downloaded", see code below. But it was hanging. I was trying to ...
Anyhow, I was also looking on the command "wait until the status is downloaded", see code below. But it was hanging. I was trying to ...
- Mon Dec 20, 2010 9:17 am
- Forum: Internet
- Topic: FTP download?
- Replies: 16
- Views: 22362
Re: FTP download?
Thanks Klaus for the code.
I've inserted it into my code, run, then it gave me the same result as before, it downloaded all the files but didn't update the modification date. When I trace the value of tDownloadstatus, it contains "downloaded" (not "cached"), so I changed it, see code below. Run it ...
I've inserted it into my code, run, then it gave me the same result as before, it downloaded all the files but didn't update the modification date. When I trace the value of tDownloadstatus, it contains "downloaded" (not "cached"), so I changed it, see code below. Run it ...
- Fri Dec 17, 2010 4:47 pm
- Forum: Internet
- Topic: FTP download?
- Replies: 16
- Views: 22362
Re: FTP download?
Hi FourthWorld, at the moment, I have no plan to support drag-and-drop ...
Klaus, I'm almost complete with the ftp download, that is to read the files and folders recursively, extract, compare dates and download the file and then update the modification date by touch.exe.
During my debug, the flow ...
Klaus, I'm almost complete with the ftp download, that is to read the files and folders recursively, extract, compare dates and download the file and then update the modification date by touch.exe.
During my debug, the flow ...
- Tue Dec 14, 2010 2:56 pm
- Forum: Internet
- Topic: FTP download?
- Replies: 16
- Views: 22362
Re: FTP download?
Thanks Klaus.
- Tue Dec 14, 2010 1:47 pm
- Forum: Internet
- Topic: FTP download?
- Replies: 16
- Views: 22362
Re: FTP download?
Thanks a lot for your help, Klaus.
I will try to use the commands you've mentionned, it may take some time for me to do it as I am still new with LiveCode but hope will complete it. BTW, I've already made this program but using other Windows program (no output to Mac) and I've also used the touch ...
I will try to use the commands you've mentionned, it may take some time for me to do it as I am still new with LiveCode but hope will complete it. BTW, I've already made this program but using other Windows program (no output to Mac) and I've also used the touch ...
- Tue Dec 14, 2010 9:44 am
- Forum: Internet
- Topic: FTP download?
- Replies: 16
- Views: 22362
FTP download?
Last week, I bought a license of LiveCode 4.5.2 which I would like to test for my first project. My project is to create a download utility from our ftp. I don't know where to start, but basically, I would like to download all the files/folders (including files in the subfolders) in our FTP site on ...