Re: ExcelLib in a standalone

2022-03-22 Thread Bob Sneidar via use-livecode
That is to say, it IS Visual Basic doing the work. 

Bob S


> On Mar 22, 2022, at 16:14 , Bob Sneidar  wrote:
> 
> Oh yes, that is what I read. Got my wires crossed. 


___
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


Re: ExcelLib in a standalone

2022-03-22 Thread Bob Sneidar via use-livecode
Oh yes, that is what I read. Got my wires crossed. 

It's interesting that you found that Excel was running hidden. My hangups in 
the past may just have been that I was getting some kind of dialog but couldn't 
see it because the app was hidden. I say that because when I tried to shut down 
my Windows 7 VM earlier, it indicated that Excel was running, even though there 
was no visible window. 

Bob S


> On Mar 22, 2022, at 16:06 , matthias rebbe via use-livecode 
>  wrote:
> 
> Bob,
> are you really sure that Java is used on Windows and not VisualBasicScript? 
> Here my tests showed that Excel is definitely loaded. It was hidden on the 
> desktop, but it was listed in TaskManager as a running process.
> 
> 
> 
> 
> 


___
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


Re: ExcelLib in a standalone

2022-03-22 Thread matthias rebbe via use-livecode
Bob,
are you really sure that Java is used on Windows and not VisualBasicScript? 
Here my tests showed that Excel is definitely loaded. It was hidden on the 
desktop, but it was listed in TaskManager as a running process.




> Am 22.03.2022 um 22:57 schrieb Bob Sneidar via use-livecode 
> :
> 
> On the Mac, the library uses Apple Events, and for that to work it has to 
> launch Excel and open the spreadsheet. On Windows, it uses some kind of Java 
> library, so does not need to open the file or the app, which means it runs 
> much faster on Windows, quite the anomaly these days. :-)
> 
> Bob S
> 
> 
>> On Mar 22, 2022, at 14:40 , matthias rebbe via use-livecode 
>>  wrote:
>> 
>> Hm, 
>> i tried here and it works, but Excel is run/opened hidden. i needed to call 
>> XCEL_Application_Show to get Excel shown.
>> 
>> Regards,
>> Matthias
>> 
>>> Am 22.03.2022 um 21:07 schrieb Bob Sneidar via use-livecode 
>>> :
>>> 
>>> The Excel_Lib file is at the same folder level as the application. In other 
>>> words I can see Excel_Lib (and the other libraries) in the application 
>>> folder. 
>>> 
>>> Bob S
>>> 
>>> 
 On Mar 22, 2022, at 12:20 , matthias rebbe via use-livecode 
  wrote:
 
 Bob,
 
 how did you include the library? As a separate stack or integrated in the 
 .exe?
 
 Regards,
 Matthias
 
> Am 22.03.2022 um 19:18 schrieb Bob Sneidar via use-livecode 
> :
> 
> Hi all. I'll try to make this as succinct as possible. 
> 
> 1. Excel_Lib works in MacOS IDE
> 2. Excel_Lib works in MacOS Standalone
> 3. Excel_Lib works in Windows 7 IDE
> 4. Excel_Lib does NOT WORK in Windows 7 Standalone
> 5. Excel_Lib works in Windows 10 IDE
> 6. Excel_Lib does NOT WORK in Windows 10 standalone
> 
> Is there something I am missing? I am not getting any alerts when it 
> fails, it simply doesn't access the spreadsheet files and the data they 
> contain. 
> 
> Bob S
> 
> 
> ___
> 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
 
 
 ___
 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
>>> 
>>> 
>>> ___
>>> 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
>> 
>> 
>> ___
>> 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
> 
> 
> ___
> 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


___
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


Re: Counting Syllables

2022-03-22 Thread Bob Sneidar via use-livecode
That's because the British take 1.46 times as long as Americans to say 
anything. ;-)

Bob S


> On Mar 22, 2022, at 15:21 , Craig Newman via use-livecode 
>  wrote:
> 
> Brian.
> 
> Storage space should not be an issue. A typical dictionary , whether American 
> (191,000)  or British (280,000), with a median word length of about 8 chars, 
> still only occupies a handful of MB of storage.
> 
> Craig


___
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


Re: Counting Syllables

2022-03-22 Thread Craig Newman via use-livecode
Brian.

Storage space should not be an issue. A typical dictionary , whether American 
(191,000)  or British (280,000), with a median word length of about 8 chars, 
still only occupies a handful of MB of storage.

Craig

> On Mar 22, 2022, at 10:25 AM, Rick Harrison via use-livecode 
>  wrote:
> 
> Yes, that is where I’m at.  An existing database would make things a lot 
> easier.
> 
> Rick
> 
>> On Mar 22, 2022, at 9:06 AM, Craig Newman via use-livecode 
>>  wrote:
>> 
>> If you have a database at all, it would cost nothing much in speed to just 
>> use the whole thing all the time. Put the database into an array, of the 
>> form:
>> “cat 1”
>> "chicken 2”
>> “elephant 3”
>> ‘miaou 1"
>> …
>> 
>> The hard part is finding that database. It would take quite a while to build 
>> and finalize your own.
>> 
>> Craig
> 
> ___
> 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


___
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


Re: ExcelLib in a standalone

2022-03-22 Thread Bob Sneidar via use-livecode
On the Mac, the library uses Apple Events, and for that to work it has to 
launch Excel and open the spreadsheet. On Windows, it uses some kind of Java 
library, so does not need to open the file or the app, which means it runs much 
faster on Windows, quite the anomaly these days. :-)

Bob S


> On Mar 22, 2022, at 14:40 , matthias rebbe via use-livecode 
>  wrote:
> 
> Hm, 
> i tried here and it works, but Excel is run/opened hidden. i needed to call 
> XCEL_Application_Show to get Excel shown.
> 
> Regards,
> Matthias
> 
>> Am 22.03.2022 um 21:07 schrieb Bob Sneidar via use-livecode 
>> :
>> 
>> The Excel_Lib file is at the same folder level as the application. In other 
>> words I can see Excel_Lib (and the other libraries) in the application 
>> folder. 
>> 
>> Bob S
>> 
>> 
>>> On Mar 22, 2022, at 12:20 , matthias rebbe via use-livecode 
>>>  wrote:
>>> 
>>> Bob,
>>> 
>>> how did you include the library? As a separate stack or integrated in the 
>>> .exe?
>>> 
>>> Regards,
>>> Matthias
>>> 
 Am 22.03.2022 um 19:18 schrieb Bob Sneidar via use-livecode 
 :
 
 Hi all. I'll try to make this as succinct as possible. 
 
 1. Excel_Lib works in MacOS IDE
 2. Excel_Lib works in MacOS Standalone
 3. Excel_Lib works in Windows 7 IDE
 4. Excel_Lib does NOT WORK in Windows 7 Standalone
 5. Excel_Lib works in Windows 10 IDE
 6. Excel_Lib does NOT WORK in Windows 10 standalone
 
 Is there something I am missing? I am not getting any alerts when it 
 fails, it simply doesn't access the spreadsheet files and the data they 
 contain. 
 
 Bob S
 
 
 ___
 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
>>> 
>>> 
>>> ___
>>> 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
>> 
>> 
>> ___
>> 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
> 
> 
> ___
> 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


___
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


Re: ExcelLib in a standalone

2022-03-22 Thread Bob Sneidar via use-livecode
OK So I set up a debugging log to see where along the way I was going wrong. I 
found some anomalies, and fixed them and now it seems to be working. 

Bob S


> On Mar 22, 2022, at 11:18 , Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. I'll try to make this as succinct as possible. 
> 
> 1. Excel_Lib works in MacOS IDE
> 2. Excel_Lib works in MacOS Standalone
> 3. Excel_Lib works in Windows 7 IDE
> 4. Excel_Lib does NOT WORK in Windows 7 Standalone
> 5. Excel_Lib works in Windows 10 IDE
> 6. Excel_Lib does NOT WORK in Windows 10 standalone
> 
> Is there something I am missing? I am not getting any alerts when it fails, 
> it simply doesn't access the spreadsheet files and the data they contain. 
> 
> Bob S
> 
> 
> ___
> 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


___
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


Re: ExcelLib in a standalone

2022-03-22 Thread matthias rebbe via use-livecode
Hm, 
i tried here and it works, but Excel is run/opened hidden. i needed to call 
XCEL_Application_Show to get Excel shown.

Regards,
Matthias

> Am 22.03.2022 um 21:07 schrieb Bob Sneidar via use-livecode 
> :
> 
> The Excel_Lib file is at the same folder level as the application. In other 
> words I can see Excel_Lib (and the other libraries) in the application 
> folder. 
> 
> Bob S
> 
> 
>> On Mar 22, 2022, at 12:20 , matthias rebbe via use-livecode 
>>  wrote:
>> 
>> Bob,
>> 
>> how did you include the library? As a separate stack or integrated in the 
>> .exe?
>> 
>> Regards,
>> Matthias
>> 
>>> Am 22.03.2022 um 19:18 schrieb Bob Sneidar via use-livecode 
>>> :
>>> 
>>> Hi all. I'll try to make this as succinct as possible. 
>>> 
>>> 1. Excel_Lib works in MacOS IDE
>>> 2. Excel_Lib works in MacOS Standalone
>>> 3. Excel_Lib works in Windows 7 IDE
>>> 4. Excel_Lib does NOT WORK in Windows 7 Standalone
>>> 5. Excel_Lib works in Windows 10 IDE
>>> 6. Excel_Lib does NOT WORK in Windows 10 standalone
>>> 
>>> Is there something I am missing? I am not getting any alerts when it fails, 
>>> it simply doesn't access the spreadsheet files and the data they contain. 
>>> 
>>> Bob S
>>> 
>>> 
>>> ___
>>> 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
>> 
>> 
>> ___
>> 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
> 
> 
> ___
> 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


___
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


Re: ExcelLib in a standalone

2022-03-22 Thread Bob Sneidar via use-livecode
The Excel_Lib file is at the same folder level as the application. In other 
words I can see Excel_Lib (and the other libraries) in the application folder. 

Bob S


> On Mar 22, 2022, at 12:20 , matthias rebbe via use-livecode 
>  wrote:
> 
> Bob,
> 
> how did you include the library? As a separate stack or integrated in the 
> .exe?
> 
> Regards,
> Matthias
> 
>> Am 22.03.2022 um 19:18 schrieb Bob Sneidar via use-livecode 
>> :
>> 
>> Hi all. I'll try to make this as succinct as possible. 
>> 
>> 1. Excel_Lib works in MacOS IDE
>> 2. Excel_Lib works in MacOS Standalone
>> 3. Excel_Lib works in Windows 7 IDE
>> 4. Excel_Lib does NOT WORK in Windows 7 Standalone
>> 5. Excel_Lib works in Windows 10 IDE
>> 6. Excel_Lib does NOT WORK in Windows 10 standalone
>> 
>> Is there something I am missing? I am not getting any alerts when it fails, 
>> it simply doesn't access the spreadsheet files and the data they contain. 
>> 
>> Bob S
>> 
>> 
>> ___
>> 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
> 
> 
> ___
> 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


___
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


Re: ExcelLib in a standalone

2022-03-22 Thread matthias rebbe via use-livecode
Bob,

how did you include the library? As a separate stack or integrated in the .exe?

Regards,
Matthias

> Am 22.03.2022 um 19:18 schrieb Bob Sneidar via use-livecode 
> :
> 
> Hi all. I'll try to make this as succinct as possible. 
> 
> 1. Excel_Lib works in MacOS IDE
> 2. Excel_Lib works in MacOS Standalone
> 3. Excel_Lib works in Windows 7 IDE
> 4. Excel_Lib does NOT WORK in Windows 7 Standalone
> 5. Excel_Lib works in Windows 10 IDE
> 6. Excel_Lib does NOT WORK in Windows 10 standalone
> 
> Is there something I am missing? I am not getting any alerts when it fails, 
> it simply doesn't access the spreadsheet files and the data they contain. 
> 
> Bob S
> 
> 
> ___
> 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


___
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


ExcelLib in a standalone

2022-03-22 Thread Bob Sneidar via use-livecode
Hi all. I'll try to make this as succinct as possible. 

1. Excel_Lib works in MacOS IDE
2. Excel_Lib works in MacOS Standalone
3. Excel_Lib works in Windows 7 IDE
4. Excel_Lib does NOT WORK in Windows 7 Standalone
5. Excel_Lib works in Windows 10 IDE
6. Excel_Lib does NOT WORK in Windows 10 standalone

Is there something I am missing? I am not getting any alerts when it fails, it 
simply doesn't access the spreadsheet files and the data they contain. 

Bob S


___
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


Re: There is no TextEdit.app???

2022-03-22 Thread Andre Garzia via use-livecode
Bob,

AppleScript still your friend. Use this AppleScript from your LiveCode app:

tell application "TextEdit"
set targetFilePath to "Macintosh HD:Users:myuser:Downloads:test.txt"

activate
open file targetFilePath
end tell


Just remember to alter the destination of targetFilePath to be the file you
want, and remember that paths are colon separated.

On Tue, 22 Mar 2022 at 15:17, Bob Sneidar via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Andre, the goal for me on this one is to get the path to the app so I can
> use it in the launch command. For some reason, using the short name of the
> app does not work with the launch command, although maybe it should. Also
> launch using just the filename does not launch the default app like you
> would think.
>
> Bob S
>
>
> > On Mar 21, 2022, at 16:16 , Bob Sneidar 
> wrote:
> >
> > NVM on this one. Apparently the TextEdit.app application is actually in
> /System/Applications/ even though there is a TextEdit.app file in
> /Applications/. Must be a SymLink.
> >
> > Bob S
> >
> >
> >> On Mar 21, 2022, at 16:12 , Bob Sneidar 
> wrote:
> >>
> >> Also the launch command is not working with the TextEdit application.
> >>
> >> Bob S
> >>
> >>
> >>> On Mar 21, 2022, at 15:58 , Bob Sneidar via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >>>
> >>> I have the following in a script, and it does not seem to be able to
> find the TextEdit.app application on a Mac!
> >>>
> >>> put "/Applications/TextEdit.app" into tTextEditorPath
> >>> if there is a folder tTextEditorPath  then
> >>>   put true into tValidPath
> >>> end if
> >>>
> >>> if tValidPath is false then
> >>>put empty into tTextEditorPath
> >>> end if
> >>>
> >>> That cannot be right.
> >>>
> >>> MacOS Catalina 10.15.7 LC 9.6.7 lc2.
> >>>
> >>> Bob S
> >>>
> >>>
> >>> ___
> >>> 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
> >>
> >
>
>
> ___
> 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
>


-- 
https://www.andregarzia.com 
Want to support me? Buy me a coffee at https://ko-fi.com/andregarzia
___
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


Re: There is no TextEdit.app???

2022-03-22 Thread Bob Sneidar via use-livecode
Andre, the goal for me on this one is to get the path to the app so I can use 
it in the launch command. For some reason, using the short name of the app does 
not work with the launch command, although maybe it should. Also launch using 
just the filename does not launch the default app like you would think. 

Bob S


> On Mar 21, 2022, at 16:16 , Bob Sneidar  wrote:
> 
> NVM on this one. Apparently the TextEdit.app application is actually in 
> /System/Applications/ even though there is a TextEdit.app file in 
> /Applications/. Must be a SymLink. 
> 
> Bob S
> 
> 
>> On Mar 21, 2022, at 16:12 , Bob Sneidar  wrote:
>> 
>> Also the launch command is not working with the TextEdit application. 
>> 
>> Bob S
>> 
>> 
>>> On Mar 21, 2022, at 15:58 , Bob Sneidar via use-livecode 
>>>  wrote:
>>> 
>>> I have the following in a script, and it does not seem to be able to find 
>>> the TextEdit.app application on a Mac! 
>>> 
>>> put "/Applications/TextEdit.app" into tTextEditorPath
>>> if there is a folder tTextEditorPath  then 
>>>   put true into tValidPath
>>> end if
>>> 
>>> if tValidPath is false then 
>>>put empty into tTextEditorPath
>>> end if
>>> 
>>> That cannot be right. 
>>> 
>>> MacOS Catalina 10.15.7 LC 9.6.7 lc2. 
>>> 
>>> Bob S
>>> 
>>> 
>>> ___
>>> 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
>> 
> 


___
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


Re: There is no TextEdit.app???

2022-03-22 Thread Bob Sneidar via use-livecode
Craig, the system is not case sensitive. Should the Symlink produce true for 
there is a folder? If so then I suppose it is a bug. But it's a minor one and 
it can be worked around. It makes sense for Apple to put such apps in the 
system, as deleting or worse yet modifying them would take more than admin 
credentials. 

Bob S


> On Mar 22, 2022, at 06:01 , Craig Newman via use-livecode 
>  wrote:
> 
> Bob.
> 
> There is no way that the uppercase/lowercase difference in a character in a 
> literal can have that sort of effect. Are you saying you can duplicate this???
> 
> Craig
> 
>> On Mar 22, 2022, at 7:01 AM, Andre Garzia via use-livecode 
>>  wrote:
>> 
>> Damn, I took a long time formatting that message so the source-code would be 
>> legible. Well, sorry, don’t know if it was my mail app or the mailing-list 
>> software, but something borked it.
>> 
>>> On 22 Mar 2022, at 10:36, Andre Garzia  wrote:
>>> 
>>> Bob,
>>> 
>>> Another way to check if an application is installed on a mac is by using 
>>> AppleScript. Here are some functions that work together to check if 
>>> TextEdit is installed.
>>> 
>>> function q txt
>>> return quote & txt & quote
>>> end q
>>> 
>>> function isApplicationInstalledByBundleID pID
>>> put "try" & cr into tScript
>>> put "tell application " & q("Finder") & " to get application file id " & 
>>> q(pID) & cr after tScript
>>> put "return true" & cr after tScript
>>> put "on error" & cr after tScript
>>> put "return false" & cr after tScript
>>> put "end try" & cr after tScript
>>> 
>>> do tScript as “applescript"
>>> 
>>> if the result is "{true}” then
>>>  return true
>>> else
>>>  return false
>>> end if
>>> end isApplicationInstalledByBundleID
>>> 
>>> function isTextEditInstalled
>>> return isApplicationInstalledByBundleID("com.apple.TextEdit")
>>> end isTextEditInstalled
>>> 
>>> 
>>> 
 On 21 Mar 2022, at 22:58, Bob Sneidar via use-livecode 
  wrote:
 
 I have the following in a script, and it does not seem to be able to find 
 the TextEdit.app application on a Mac! 
 
 put "/Applications/TextEdit.app" into tTextEditorPath
 if there is a folder tTextEditorPath  then 
  put true into tValidPath
 end if
 
 if tValidPath is false then 
   put empty into tTextEditorPath
 end if
 
 That cannot be right. 
 
 MacOS Catalina 10.15.7 LC 9.6.7 lc2. 
 
 Bob S
 
 
 ___
 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
>>> 
>> 
>> 
>> ___
>> 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
> 
> 
> ___
> 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

___
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


Re: Counting Syllables

2022-03-22 Thread Rick Harrison via use-livecode
Yes, that is where I’m at.  An existing database would make things a lot easier.

Rick

> On Mar 22, 2022, at 9:06 AM, Craig Newman via use-livecode 
>  wrote:
> 
> If you have a database at all, it would cost nothing much in speed to just 
> use the whole thing all the time. Put the database into an array, of the form:
> “cat 1”
> "chicken 2”
> “elephant 3”
> ‘miaou 1"
> …
> 
> The hard part is finding that database. It would take quite a while to build 
> and finalize your own.
> 
> Craig

___
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


Re: Counting Syllables

2022-03-22 Thread Brian Milby via use-livecode
True about speed, but I was more thinking about storage space and tolerance to 
missing words.  A complete dictionary would likely be faster.

Brian

Sent from my iPhone

> On Mar 22, 2022, at 9:07 AM, Craig Newman via use-livecode 
>  wrote:
> 
> If you have a database at all, it would cost nothing much in speed to just 
> use the whole thing all the time. Put the database into an array, of the form:
> “cat 1”
> "chicken 2”
> “elephant 3”
> ‘miaou 1"
> …
> 
> The hard part is finding that database. It would take quite a while to build 
> and finalize your own.
> 
> Craig
> 
> 
>> On Mar 21, 2022, at 10:47 PM, Brian Milby via use-livecode 
>>  wrote:
>> 
>> Well, you could set up your rules and just database the exceptions.  Then 
>> you at least have a guess for the words that you don’t “know” the answer 
>> for.  If there is a database miss, then use the rule set.
> 
> ___
> 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

___
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


Re: Counting Syllables

2022-03-22 Thread Craig Newman via use-livecode
If you have a database at all, it would cost nothing much in speed to just use 
the whole thing all the time. Put the database into an array, of the form:
“cat 1”
"chicken 2”
“elephant 3”
‘miaou 1"
…

The hard part is finding that database. It would take quite a while to build 
and finalize your own.

Craig


> On Mar 21, 2022, at 10:47 PM, Brian Milby via use-livecode 
>  wrote:
> 
> Well, you could set up your rules and just database the exceptions.  Then you 
> at least have a guess for the words that you don’t “know” the answer for.  If 
> there is a database miss, then use the rule set.

___
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


Re: There is no TextEdit.app???

2022-03-22 Thread Craig Newman via use-livecode
Bob.

There is no way that the uppercase/lowercase difference in a character in a 
literal can have that sort of effect. Are you saying you can duplicate this???

Craig

> On Mar 22, 2022, at 7:01 AM, Andre Garzia via use-livecode 
>  wrote:
> 
> Damn, I took a long time formatting that message so the source-code would be 
> legible. Well, sorry, don’t know if it was my mail app or the mailing-list 
> software, but something borked it.
> 
>> On 22 Mar 2022, at 10:36, Andre Garzia  wrote:
>> 
>> Bob,
>> 
>> Another way to check if an application is installed on a mac is by using 
>> AppleScript. Here are some functions that work together to check if TextEdit 
>> is installed.
>> 
>> function q txt
>> return quote & txt & quote
>> end q
>> 
>> function isApplicationInstalledByBundleID pID
>> put "try" & cr into tScript
>> put "tell application " & q("Finder") & " to get application file id " & 
>> q(pID) & cr after tScript
>> put "return true" & cr after tScript
>> put "on error" & cr after tScript
>> put "return false" & cr after tScript
>> put "end try" & cr after tScript
>> 
>> do tScript as “applescript"
>> 
>> if the result is "{true}” then
>>   return true
>> else
>>   return false
>> end if
>> end isApplicationInstalledByBundleID
>> 
>> function isTextEditInstalled
>> return isApplicationInstalledByBundleID("com.apple.TextEdit")
>> end isTextEditInstalled
>> 
>> 
>> 
>>> On 21 Mar 2022, at 22:58, Bob Sneidar via use-livecode 
>>>  wrote:
>>> 
>>> I have the following in a script, and it does not seem to be able to find 
>>> the TextEdit.app application on a Mac! 
>>> 
>>> put "/Applications/TextEdit.app" into tTextEditorPath
>>> if there is a folder tTextEditorPath  then 
>>>   put true into tValidPath
>>> end if
>>> 
>>> if tValidPath is false then 
>>>put empty into tTextEditorPath
>>> end if
>>> 
>>> That cannot be right. 
>>> 
>>> MacOS Catalina 10.15.7 LC 9.6.7 lc2. 
>>> 
>>> Bob S
>>> 
>>> 
>>> ___
>>> 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
>> 
> 
> 
> ___
> 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


___
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


Re: There is no TextEdit.app???

2022-03-22 Thread Andre Garzia via use-livecode
Damn, I took a long time formatting that message so the source-code would be 
legible. Well, sorry, don’t know if it was my mail app or the mailing-list 
software, but something borked it.

> On 22 Mar 2022, at 10:36, Andre Garzia  wrote:
> 
> Bob,
> 
> Another way to check if an application is installed on a mac is by using 
> AppleScript. Here are some functions that work together to check if TextEdit 
> is installed.
> 
> function q txt
>  return quote & txt & quote
> end q
> 
> function isApplicationInstalledByBundleID pID
>  put "try" & cr into tScript
>  put "tell application " & q("Finder") & " to get application file id " & 
> q(pID) & cr after tScript
>  put "return true" & cr after tScript
>  put "on error" & cr after tScript
>  put "return false" & cr after tScript
>  put "end try" & cr after tScript
> 
>  do tScript as “applescript"
> 
>  if the result is "{true}” then
>return true
>  else
>return false
>  end if
> end isApplicationInstalledByBundleID
> 
> function isTextEditInstalled
>  return isApplicationInstalledByBundleID("com.apple.TextEdit")
> end isTextEditInstalled
> 
> 
> 
>> On 21 Mar 2022, at 22:58, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> I have the following in a script, and it does not seem to be able to find 
>> the TextEdit.app application on a Mac! 
>> 
>>  put "/Applications/TextEdit.app" into tTextEditorPath
>>  if there is a folder tTextEditorPath  then 
>>put true into tValidPath
>>  end if
>> 
>>  if tValidPath is false then 
>> put empty into tTextEditorPath
>>  end if
>> 
>> That cannot be right. 
>> 
>> MacOS Catalina 10.15.7 LC 9.6.7 lc2. 
>> 
>> Bob S
>> 
>> 
>> ___
>> 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
> 


___
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


Re: There is no TextEdit.app???

2022-03-22 Thread Andre Garzia via use-livecode
Bob,

Another way to check if an application is installed on a mac is by using 
AppleScript. Here are some functions that work together to check if TextEdit is 
installed.

function q txt
  return quote & txt & quote
end q

function isApplicationInstalledByBundleID pID
  put "try" & cr into tScript
  put "tell application " & q("Finder") & " to get application file id " & 
q(pID) & cr after tScript
  put "return true" & cr after tScript
  put "on error" & cr after tScript
  put "return false" & cr after tScript
  put "end try" & cr after tScript

  do tScript as “applescript"

  if the result is "{true}” then
return true
  else
return false
  end if
end isApplicationInstalledByBundleID

function isTextEditInstalled
  return isApplicationInstalledByBundleID("com.apple.TextEdit")
end isTextEditInstalled



> On 21 Mar 2022, at 22:58, Bob Sneidar via use-livecode 
>  wrote:
> 
> I have the following in a script, and it does not seem to be able to find the 
> TextEdit.app application on a Mac! 
> 
>   put "/Applications/TextEdit.app" into tTextEditorPath
>   if there is a folder tTextEditorPath  then 
> put true into tValidPath
>   end if
> 
>   if tValidPath is false then 
>  put empty into tTextEditorPath
>   end if
> 
> That cannot be right. 
> 
> MacOS Catalina 10.15.7 LC 9.6.7 lc2. 
> 
> Bob S
> 
> 
> ___
> 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


___
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