Re: Stacks whose names start with "rev"

2018-10-10 Thread J. Landman Gay via use-livecode
For anyone following this, simply opening the stack with messages turned 
off doesn't work for very long. As soon as you perform any significant 
action (click a control, change cards, etc.) the stack is reset to mode 
2. But doing this in the message box does persist:


  set the _ideoverride of stack  to false

On 10/10/18 11:29 AM, J. Landman Gay via use-livecode wrote:
Thanks very much Monte, that's exactly what I wanted to know. For simple 
editing it sounds like I could just turn off messages, open the stack 
from Finder, and turn messages back on, bypassing preOpenStack entirely. 
If that doesn't work you've given me a couple of other things to try.


I'd still like to know the reason for the bizarre error warning, but one 
thing at a time. It was odd but wasn't a blocker.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 9, 2018 5:33:59 PM Monte Goulding via use-livecode 
 wrote:



Hi Jacque

I’m sorry I haven’t been following this whole thread so forgive me if 
my responses have already been covered.


On 10 Oct 2018, at 6:22 am, Richard Gaskin via use-livecode 
 wrote:



If the cantEdit is false but the mode is reported as 2, that sounds
like an engine bug.


Don't you mean cantModify here?

toplevel stacks that are ide stacks are forced to toplevel locked 
(mode 2). We determine this through a stack custom property 
`ideOverride`. If that is true when loading the stack from disk then 
it is set as an IDE stack. Additionally there is a runtime property of 
stacks that you can set `_ideoverride` that can turn this behavior on 
and off.


Jacque’s issue is we have an IDE script that dynamically sets these in 
revfrontsciptlibrary preOpenStack:


  if revIDEObjectIsOnIDEStack(tTarget) then
 # IM-2016-03-01: [[ Bug 16244 ]] IDE stacks should always hide 
invisible  objects

 set the showInvisibles of stack tStack to false
 set the _ideoverride of stack tStack to true
  end if

It all hinges on a function in revcommonlibrary:

function revStackNameIsIDEStack pStackName
  if there is a stack pStackName and the _ideoverride of stack 
pStackName then

 return true
  else if pStackName is among the items of "message box,answer 
dialog,ask   dialog,home" then

 return true
  else if pStackName begins with "com.livecode." then
 return true
  else if pStackName is among the lines of 
revInternal__ListLoadedLibraries()   then

 return true
  else
 return pStackName begins with "rev"
  end if
end revStackNameIsIDEStack

We could look at changing that to ensure the filename of the stack is 
an IDE or plugin file path but in your case just patching that to set 
the caseSensitive to true just before checking for “rev” would cover it.


Cheers

Monte


___
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



--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
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: Reading PDF Form Data in LiveCode?

2018-10-10 Thread Bob Sneidar via use-livecode
Still locks up. I have an email in to the guy who maintains it. I just thought 
if someone had this working they could provide me with proper syntax. I cannot 
get the prompt working either. This from the man page:

pdftk 
[ input_pw  ]
[   ]
[ output  ]

I'm not that good at internreting man page syntax. I have yet to get it right 
one single time. :-)

Bob S


> On Oct 10, 2018, at 10:32 , Mark via use-livecode 
>  wrote:
> 
> Have you tried leaving off the output filename? Should dump it to stdout then.
> 
> Mark


___
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: Reading PDF Form Data in LiveCode?

2018-10-10 Thread Mark via use-livecode
Have you tried leaving off the output filename? Should dump it to stdout then.

Mark
On Oct 10, 2018, 10:29 AM -0700, Mark Wieder via use-livecode 
, wrote:
> On 10/10/2018 10:16 AM, Bob Sneidar via use-livecode wrote:
> > Doesn't seem to work. I enter this syntax in a terminal session:
> >
> > pdftk "/Users/bobsneidar/Documents/Installs/3PL 
> > Logistics/Hawthorne/20130815-3PL Logistics Site Survey.pdf" output 
> > "/Users/bobsneidar/Documents/Installs/3PL Logistics/Hawthorne/20130815-3PL 
> > Logistics Site Survey_data.fdf" generate_fdf
> >
> > Doesn't throw an error, just doesn't do anything. I have to ctrl-c to get 
> > my terminal back. Do you see any issue with my statement?
>
> Dunno. But I'd immediately suspect the spaces in the pathnames.
>
> --
> Mark Wieder
> ahsoftw...@gmail.com
>
> ___
> 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: Reading PDF Form Data in LiveCode?

2018-10-10 Thread Bob Sneidar via use-livecode
That's why I enclosed them in quotes. Dragging the files into the terminal 
creted paths with delimited spaces, but I got the same result. 

Bob S


> On Oct 10, 2018, at 10:28 , Mark Wieder via use-livecode 
>  wrote:
> 
> On 10/10/2018 10:16 AM, Bob Sneidar via use-livecode wrote:
>> Doesn't seem to work. I enter this syntax in a terminal session:
>> pdftk "/Users/bobsneidar/Documents/Installs/3PL 
>> Logistics/Hawthorne/20130815-3PL Logistics Site Survey.pdf" output 
>> "/Users/bobsneidar/Documents/Installs/3PL Logistics/Hawthorne/20130815-3PL 
>> Logistics Site Survey_data.fdf" generate_fdf
>> Doesn't throw an error, just doesn't do anything. I have to ctrl-c to get my 
>> terminal back. Do you see any issue with my statement?
> 
> Dunno. But I'd immediately suspect the spaces in the pathnames.
> 
> -- 
> Mark Wieder


___
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: Reading PDF Form Data in LiveCode?

2018-10-10 Thread Mark Wieder via use-livecode

On 10/10/2018 10:16 AM, Bob Sneidar via use-livecode wrote:

Doesn't seem to work. I enter this syntax in a terminal session:

pdftk "/Users/bobsneidar/Documents/Installs/3PL Logistics/Hawthorne/20130815-3PL Logistics 
Site Survey.pdf" output "/Users/bobsneidar/Documents/Installs/3PL 
Logistics/Hawthorne/20130815-3PL Logistics Site Survey_data.fdf" generate_fdf

Doesn't throw an error, just doesn't do anything. I have to ctrl-c to get my 
terminal back. Do you see any issue with my statement?


Dunno. But I'd immediately suspect the spaces in the pathnames.

--
 Mark Wieder
 ahsoftw...@gmail.com

___
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: Reading PDF Form Data in LiveCode?

2018-10-10 Thread Bob Sneidar via use-livecode
Doesn't seem to work. I enter this syntax in a terminal session:

pdftk "/Users/bobsneidar/Documents/Installs/3PL 
Logistics/Hawthorne/20130815-3PL Logistics Site Survey.pdf" output 
"/Users/bobsneidar/Documents/Installs/3PL Logistics/Hawthorne/20130815-3PL 
Logistics Site Survey_data.fdf" generate_fdf

Doesn't throw an error, just doesn't do anything. I have to ctrl-c to get my 
terminal back. Do you see any issue with my statement? 

Bob S


> On Oct 10, 2018, at 08:53 , Mark via use-livecode 
>  wrote:
> 
> I have used https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ server 
> version in the past.
> 
> Mark


___
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: Community widgets

2018-10-10 Thread hh via use-livecode
> Bill P. wrote:
> I love the datepicker!

Relating to the datepicker widget I should once again acknowledge
the basic work of Elanor (calendar widget) and Bernd (additions to
the calendar widget) and hints/comments by Bernd.

[The algorithms I used are translated to LCB from the LCS of Raspi
stack "calendar 1-3-6-12" (Aug 2015).]

The main interesting thing for me when writing this widget was to
see that the following is possible (and *very* comfortable in LCB):

1. Paint the canvas for a fixed fontSize (say 13) "pixel-exact".
2. Then use simply an affine transform to scale the display (you have
to reverse the transform for the mouse positions to get the clicks).

You set this transform via the property pickerScale.

___
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: Stacks whose names start with "rev"

2018-10-10 Thread J. Landman Gay via use-livecode
Thanks very much Monte, that's exactly what I wanted to know. For simple 
editing it sounds like I could just turn off messages, open the stack from 
Finder, and turn messages back on, bypassing preOpenStack entirely. If that 
doesn't work you've given me a couple of other things to try.


I'd still like to know the reason for the bizarre error warning, but one 
thing at a time. It was odd but wasn't a blocker.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 9, 2018 5:33:59 PM Monte Goulding via use-livecode 
 wrote:



Hi Jacque

I’m sorry I haven’t been following this whole thread so forgive me if my 
responses have already been covered.


On 10 Oct 2018, at 6:22 am, Richard Gaskin via use-livecode 
 wrote:



If the cantEdit is false but the mode is reported as 2, that sounds
like an engine bug.


Don't you mean cantModify here?

toplevel stacks that are ide stacks are forced to toplevel locked (mode 2). 
We determine this through a stack custom property `ideOverride`. If that is 
true when loading the stack from disk then it is set as an IDE stack. 
Additionally there is a runtime property of stacks that you can set 
`_ideoverride` that can turn this behavior on and off.


Jacque’s issue is we have an IDE script that dynamically sets these in 
revfrontsciptlibrary preOpenStack:


  if revIDEObjectIsOnIDEStack(tTarget) then
 # IM-2016-03-01: [[ Bug 16244 ]] IDE stacks should always hide invisible 
 objects

 set the showInvisibles of stack tStack to false
 set the _ideoverride of stack tStack to true
  end if

It all hinges on a function in revcommonlibrary:

function revStackNameIsIDEStack pStackName
  if there is a stack pStackName and the _ideoverride of stack pStackName then
 return true
  else if pStackName is among the items of "message box,answer dialog,ask 
  dialog,home" then

 return true
  else if pStackName begins with "com.livecode." then
 return true
  else if pStackName is among the lines of revInternal__ListLoadedLibraries() 
  then

 return true
  else
 return pStackName begins with "rev"
  end if
end revStackNameIsIDEStack

We could look at changing that to ensure the filename of the stack is an 
IDE or plugin file path but in your case just patching that to set the 
caseSensitive to true just before checking for “rev” would cover it.


Cheers

Monte


___
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: Community widgets

2018-10-10 Thread prothero--- via use-livecode
This is really nice stuff. I love the datepicker!
Thanks so much for contributing to the community, Herman. hh?
Bill

William Prothero
http://es.earthednet.org

> On Oct 10, 2018, at 8:54 AM, Ingar Roggen via use-livecode 
>  wrote:
> 
> Freely, of course
> 
> Sendt fra min iPhone
> 
>> 10. okt. 2018 kl. 17:54 skrev Ingar Roggen via use-livecode 
>> :
>> 
>> Why not write a HyperCard-app to make the excellent SheepShaver solution 
>> freegy and generally accessible?
>> 
>> Sendt fra min iPhone
>> 
>>> 10. okt. 2018 kl. 11:48 skrev hh via use-livecode 
>>> :
>>> 
>>> The following community widgets are now available as
>>> "fat" widgets, that is they are installed or removed
>>> for both LC 8 and 9 and they work identically in both.
>>> 
>>> All widgets are available on "Sample Stacks" or via
>>> livecodeshare (as given below).
>>> 
>>> An asterisk (*) indicates a new feature (and/or a
>>> removed bug). All rotatable widgets have the
>>> click-through-transparency property.
>>> 
>>> [9] OrientedText v152 (published Oct 10, 2018)
>>> ... http://livecodeshare.runrev.com/stack/910
>>> 
>>> [8] Progress v130* (published Oct 10, 2018)
>>> ... http://livecodeshare.runrev.com/stack/909
>>> 
>>> [7] Polygon v121 (published Oct 10, 2018)
>>> ... http://livecodeshare.runrev.com/stack/908
>>> 
>>> [6] DigitClock v121 (published Oct 10, 2018)
>>> ... http://livecodeshare.runrev.com/stack/907
>>> 
>>> [5] ClockAround v122* (published Oct 10, 2018)
>>> ... http://livecodeshare.runrev.com/stack/906
>>> 
>>> [4] SVGText v152* (published Oct 10, 2018)
>>> ... http://livecodeshare.runrev.com/stack/905
>>> 
>>> [3] IconGrid v211 (published Oct 01, 2018)
>>> ... http://livecodeshare.runrev.com/stack/904
>>> 
>>> [2] DatePicker v109 (published Oct 01, 2018)
>>> ... http://livecodeshare.runrev.com/stack/903
>>> 
>>> [1] ColorPicker v102 (published Oct 01, 2018)
>>> ... http://livecodeshare.runrev.com/stack/901
>>> 
>>> The widgets above are free for non-commercial use
>>> and have the source code included.
>>> For commercial use please give a (small) fee to
>>> the LC developer help fund.
>>> 
>>> 
>>> ___
>>> 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: Community widgets

2018-10-10 Thread Ingar Roggen via use-livecode
Freely, of course

Sendt fra min iPhone

> 10. okt. 2018 kl. 17:54 skrev Ingar Roggen via use-livecode 
> :
> 
> Why not write a HyperCard-app to make the excellent SheepShaver solution 
> freegy and generally accessible?
> 
> Sendt fra min iPhone
> 
>> 10. okt. 2018 kl. 11:48 skrev hh via use-livecode 
>> :
>> 
>> The following community widgets are now available as
>> "fat" widgets, that is they are installed or removed
>> for both LC 8 and 9 and they work identically in both.
>> 
>> All widgets are available on "Sample Stacks" or via
>> livecodeshare (as given below).
>> 
>> An asterisk (*) indicates a new feature (and/or a
>> removed bug). All rotatable widgets have the
>> click-through-transparency property.
>> 
>> [9] OrientedText v152 (published Oct 10, 2018)
>> ... http://livecodeshare.runrev.com/stack/910
>> 
>> [8] Progress v130* (published Oct 10, 2018)
>> ... http://livecodeshare.runrev.com/stack/909
>> 
>> [7] Polygon v121 (published Oct 10, 2018)
>> ... http://livecodeshare.runrev.com/stack/908
>> 
>> [6] DigitClock v121 (published Oct 10, 2018)
>> ... http://livecodeshare.runrev.com/stack/907
>> 
>> [5] ClockAround v122* (published Oct 10, 2018)
>> ... http://livecodeshare.runrev.com/stack/906
>> 
>> [4] SVGText v152* (published Oct 10, 2018)
>> ... http://livecodeshare.runrev.com/stack/905
>> 
>> [3] IconGrid v211 (published Oct 01, 2018)
>> ... http://livecodeshare.runrev.com/stack/904
>> 
>> [2] DatePicker v109 (published Oct 01, 2018)
>> ... http://livecodeshare.runrev.com/stack/903
>> 
>> [1] ColorPicker v102 (published Oct 01, 2018)
>> ... http://livecodeshare.runrev.com/stack/901
>> 
>> The widgets above are free for non-commercial use
>> and have the source code included.
>> For commercial use please give a (small) fee to
>> the LC developer help fund.
>> 
>> 
>> ___
>> 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: Reading PDF Form Data in LiveCode?

2018-10-10 Thread Mark via use-livecode
I have used https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/ server version 
in the past.

Mark
On Oct 10, 2018, 8:48 AM -0700, Peter Reid via use-livecode 
, wrote:
> Does anyone have any code or suggestions for reading the data from PDF forms? 
> I have several hundred form fields in 5 different design forms in PDF format 
> that I need to extract. The data is mainly text fields but may include a few 
> checkboxes and radio buttons. Any thoughts please?
>
> Thanks
>
> Peter
> --
> Peter Reid
> Loughborough, UK
>
>
> ___
> 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: Community widgets

2018-10-10 Thread Ingar Roggen via use-livecode
Why not write a HyperCard-app to make the excellent SheepShaver solution freegy 
and generally accessible?

Sendt fra min iPhone

> 10. okt. 2018 kl. 11:48 skrev hh via use-livecode 
> :
> 
> The following community widgets are now available as
> "fat" widgets, that is they are installed or removed
> for both LC 8 and 9 and they work identically in both.
> 
> All widgets are available on "Sample Stacks" or via
> livecodeshare (as given below).
> 
> An asterisk (*) indicates a new feature (and/or a
> removed bug). All rotatable widgets have the
> click-through-transparency property.
> 
> [9] OrientedText v152 (published Oct 10, 2018)
> ... http://livecodeshare.runrev.com/stack/910
> 
> [8] Progress v130* (published Oct 10, 2018)
> ... http://livecodeshare.runrev.com/stack/909
> 
> [7] Polygon v121 (published Oct 10, 2018)
> ... http://livecodeshare.runrev.com/stack/908
> 
> [6] DigitClock v121 (published Oct 10, 2018)
> ... http://livecodeshare.runrev.com/stack/907
> 
> [5] ClockAround v122* (published Oct 10, 2018)
> ... http://livecodeshare.runrev.com/stack/906
> 
> [4] SVGText v152* (published Oct 10, 2018)
> ... http://livecodeshare.runrev.com/stack/905
> 
> [3] IconGrid v211 (published Oct 01, 2018)
> ... http://livecodeshare.runrev.com/stack/904
> 
> [2] DatePicker v109 (published Oct 01, 2018)
> ... http://livecodeshare.runrev.com/stack/903
> 
> [1] ColorPicker v102 (published Oct 01, 2018)
> ... http://livecodeshare.runrev.com/stack/901
> 
> The widgets above are free for non-commercial use
> and have the source code included.
> For commercial use please give a (small) fee to
> the LC developer help fund.
> 
> 
> ___
> 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: How to tell if a file path is just the path or includes a file name

2018-10-10 Thread Paul Dupuis via use-livecode
Duh, you are right. No loop is needed for what I want!

function isPath pSomePath
  set itemDel to slash
  if there is not a folder pSomePath then
    -- remove the last item and try again
    delete last item of pSomePath
    if there is not a folder pSomePath then
   return false -- neither the path, nor the path less a filename,
is a valid folder path
    end if
  end if
  return pSomePath -- this is either a valid path of folders or the
folder portion of a path with a file name removed
end is Path

Thank you.
  

On 10/10/2018 11:38 AM, Bob Sneidar via use-livecode wrote:
> there is a folder returns false on Mac if it's a file. Unless the file is a 
> bundle (app). A Mac app is in fact a folder that has been flagged as an 
> application. 
>
> Looking at your code, are you trying to extract the paths to all the files, 
> or determine which are folders inside a given path? If you are just trying to 
> determine if a path is just a folder, then there is a folder will return 
> false if it is a path to a file. 
>
> Bob S
>
>
>> On Oct 10, 2018, at 08:29 , Paul Dupuis via use-livecode 
>>  wrote:
>>
>> Lets say you have a bunch of file paths - some are just paths (all
>> folders) and some end in a file name (and the file may or may not exist).
>> i.e.
>> /Folder1/Folder2/Folder3
>> /Folder1/AnotherFolder/Somefile.txt
>> /Folder1/Folder2/Folderwith.intheName
>> How would you test to tell whether a given record is just a path of
>> folders or contains a file name? Is there any way other than looping
>> through the path and testing if each "folder" exists?
>> All, I can come up with is:
>> function isPath pSomePath
>>   local tJustAPath = true
>>   set itemDel to slash
>>   repeat with i=1 to the number of items in pSomePath
>> if there is not a folder (item 1 to i of pSomePath) then
>>   put false into tJustAPath
>>   exit repeat
>> end if
>>   end repeat
>>   return tJustAPath
>> end isPath
>>
>> Is there some OS of LiveCode trick I am missing?
>>
>>
>> ___
>> 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: How to tell if a file path is just the path or includes a file name

2018-10-10 Thread Bob Sneidar via use-livecode
there is a folder returns false on Mac if it's a file. Unless the file is a 
bundle (app). A Mac app is in fact a folder that has been flagged as an 
application. 

Looking at your code, are you trying to extract the paths to all the files, or 
determine which are folders inside a given path? If you are just trying to 
determine if a path is just a folder, then there is a folder will return false 
if it is a path to a file. 

Bob S


> On Oct 10, 2018, at 08:29 , Paul Dupuis via use-livecode 
>  wrote:
> 
> Lets say you have a bunch of file paths - some are just paths (all
> folders) and some end in a file name (and the file may or may not exist).
> i.e.
> /Folder1/Folder2/Folder3
> /Folder1/AnotherFolder/Somefile.txt
> /Folder1/Folder2/Folderwith.intheName
> How would you test to tell whether a given record is just a path of
> folders or contains a file name? Is there any way other than looping
> through the path and testing if each "folder" exists?
> All, I can come up with is:
> function isPath pSomePath
>   local tJustAPath = true
>   set itemDel to slash
>   repeat with i=1 to the number of items in pSomePath
> if there is not a folder (item 1 to i of pSomePath) then
>   put false into tJustAPath
>   exit repeat
> end if
>   end repeat
>   return tJustAPath
> end isPath
> 
> Is there some OS of LiveCode trick I am missing?
> 
> 
> ___
> 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


How to tell if a file path is just the path or includes a file name

2018-10-10 Thread Paul Dupuis via use-livecode
Lets say you have a bunch of file paths - some are just paths (all
folders) and some end in a file name (and the file may or may not exist).
i.e.
/Folder1/Folder2/Folder3
/Folder1/AnotherFolder/Somefile.txt
/Folder1/Folder2/Folderwith.intheName
How would you test to tell whether a given record is just a path of
folders or contains a file name? Is there any way other than looping
through the path and testing if each "folder" exists?
All, I can come up with is:
function isPath pSomePath
  local tJustAPath = true
  set itemDel to slash
  repeat with i=1 to the number of items in pSomePath
    if there is not a folder (item 1 to i of pSomePath) then
      put false into tJustAPath
      exit repeat
    end if
  end repeat
  return tJustAPath
end isPath

Is there some OS of LiveCode trick I am missing?


___
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: Reading PDF Form Data in LiveCode?

2018-10-10 Thread Ludovic THEBAULT via use-livecode
On macOS, try PDFzone (on the App Store). Great app.



___
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: Reading PDF Form Data in LiveCode?

2018-10-10 Thread Bob Sneidar via use-livecode
I should have mentioned, you need Acrobat for this, Reader won't do it, and any 
Acrobat alternative would need to be able to run javascripts. 

Bob S


> On Oct 10, 2018, at 08:16 , Bob Sneidar via use-livecode 
>  wrote:
> 
> Have you heard of my app? :-)
> 
> What I do on a Mac is tell Acrobat (via Applescript) to create an fdf file 
> which is an xml formatted file of all the values in the form controls. I then 
> have a function that parses that file into a livecode array. Windows is 
> trickier, because you cannot tell acrobat for windows to do anything from 
> outisde without going through a C API that Adobe provides for that purpose. 
> 
> If however your workflow allows for a user interaction, then you can just 
> create an action to run a javascript. Here's the code:
> 
> this.exportAsFDF(true, true, null, false);
> 
> Once you have that file, I can send you the code I use to parse it. 
> 
> Bob S
> 
> 
>> On Oct 10, 2018, at 08:03 , Stephen Barncard via use-livecode 
>>  wrote:
>> 
>> before wheel invention it might be prudent to see how the existing apps do
>> this.
>> especially if this is a one shot.
>> 
>> https://pdf.wondershare.com/top-pdf-software/free-pdf-to-csv-converter.html
>> --
>> Stephen Barncard - Sebastopol Ca. USA -
>> mixstream.org
>> 
>> 
>> On Wed, Oct 10, 2018 at 7:45 AM Peter Reid via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Does anyone have any code or suggestions for reading the data from PDF
>>> forms? I have several hundred form fields in 5 different design forms in
>>> PDF format that I need to extract. The data is mainly text fields but may
>>> include a few checkboxes and radio buttons. Any thoughts please?
>>> 
>>> Thanks
>>> 
>>> Peter
>>> --
>>> Peter Reid
>>> Loughborough, UK
> 
> 
> ___
> 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: Reading PDF Form Data in LiveCode?

2018-10-10 Thread Bob Sneidar via use-livecode
I didn't see in any of the descriptions a way to script or automate 
conversions. I suppose if any has a watch folder auto conversion feature that 
could work. 

Bob S


> On Oct 10, 2018, at 08:08 , Mike Kerner via use-livecode 
>  wrote:
> 
> That looks like an interesting list.
> We just started on a new app in LC for managing troves of scanned
> documents, and one of the tasks we were planning to add was connecting to
> an OCR service and a PDF-converter.


___
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: Reading PDF Form Data in LiveCode?

2018-10-10 Thread Bob Sneidar via use-livecode
Have you heard of my app? :-)

What I do on a Mac is tell Acrobat (via Applescript) to create an fdf file 
which is an xml formatted file of all the values in the form controls. I then 
have a function that parses that file into a livecode array. Windows is 
trickier, because you cannot tell acrobat for windows to do anything from 
outisde without going through a C API that Adobe provides for that purpose. 

If however your workflow allows for a user interaction, then you can just 
create an action to run a javascript. Here's the code:

this.exportAsFDF(true, true, null, false);

Once you have that file, I can send you the code I use to parse it. 

Bob S


> On Oct 10, 2018, at 08:03 , Stephen Barncard via use-livecode 
>  wrote:
> 
> before wheel invention it might be prudent to see how the existing apps do
> this.
> especially if this is a one shot.
> 
> https://pdf.wondershare.com/top-pdf-software/free-pdf-to-csv-converter.html
> --
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.org
> 
> 
> On Wed, Oct 10, 2018 at 7:45 AM Peter Reid via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Does anyone have any code or suggestions for reading the data from PDF
>> forms? I have several hundred form fields in 5 different design forms in
>> PDF format that I need to extract. The data is mainly text fields but may
>> include a few checkboxes and radio buttons. Any thoughts please?
>> 
>> Thanks
>> 
>> Peter
>> --
>> Peter Reid
>> Loughborough, UK


___
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: Reading PDF Form Data in LiveCode?

2018-10-10 Thread Mike Kerner via use-livecode
That looks like an interesting list.
We just started on a new app in LC for managing troves of scanned
documents, and one of the tasks we were planning to add was connecting to
an OCR service and a PDF-converter.

On Wed, Oct 10, 2018 at 11:04 AM Stephen Barncard via use-livecode <
use-livecode@lists.runrev.com> wrote:

> before wheel invention it might be prudent to see how the existing apps do
> this.
> especially if this is a one shot.
>
> https://pdf.wondershare.com/top-pdf-software/free-pdf-to-csv-converter.html
> --
> Stephen Barncard - Sebastopol Ca. USA -
> mixstream.org
>
>
> On Wed, Oct 10, 2018 at 7:45 AM Peter Reid via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>
> > Does anyone have any code or suggestions for reading the data from PDF
> > forms? I have several hundred form fields in 5 different design forms in
> > PDF format that I need to extract. The data is mainly text fields but may
> > include a few checkboxes and radio buttons. Any thoughts please?
> >
> > Thanks
> >
> > Peter
> > --
> > Peter Reid
> > Loughborough, UK
> >
> >
> > ___
> > 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
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
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: Reading PDF Form Data in LiveCode?

2018-10-10 Thread Stephen Barncard via use-livecode
before wheel invention it might be prudent to see how the existing apps do
this.
especially if this is a one shot.

https://pdf.wondershare.com/top-pdf-software/free-pdf-to-csv-converter.html
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org


On Wed, Oct 10, 2018 at 7:45 AM Peter Reid via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Does anyone have any code or suggestions for reading the data from PDF
> forms? I have several hundred form fields in 5 different design forms in
> PDF format that I need to extract. The data is mainly text fields but may
> include a few checkboxes and radio buttons. Any thoughts please?
>
> Thanks
>
> Peter
> --
> Peter Reid
> Loughborough, UK
>
>
> ___
> 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


Reading PDF Form Data in LiveCode?

2018-10-10 Thread Peter Reid via use-livecode
Does anyone have any code or suggestions for reading the data from PDF forms? I 
have several hundred form fields in 5 different design forms in PDF format that 
I need to extract. The data is mainly text fields but may include a few 
checkboxes and radio buttons. Any thoughts please?

Thanks

Peter
--
Peter Reid
Loughborough, UK


___
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


[ANN] This Week in LiveCode 149

2018-10-10 Thread panagiotis merakos via use-livecode
Hi all,

Read about new developments in LiveCode open source and the open source
community in today's edition of the "This Week in LiveCode" newsletter!

Read issue #149 here: https://goo.gl/KQUHv1

This is a weekly newsletter about LiveCode, focussing on what's been
going on in and around the open source project. New issues will be
released weekly on Mondays. We have a dedicated mailing list that will
deliver each issue directly to you e-mail, so you don't miss any!

If you have anything you'd like mentioned (a project, a discussion
somewhere, an upcoming event) then please get in touch.


-- 
Panagiotis Merakos 
LiveCode Software Developer

Everyone Can Create Apps 
___
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


Community widgets

2018-10-10 Thread hh via use-livecode
The following community widgets are now available as
"fat" widgets, that is they are installed or removed
for both LC 8 and 9 and they work identically in both.

All widgets are available on "Sample Stacks" or via
livecodeshare (as given below).

An asterisk (*) indicates a new feature (and/or a
removed bug). All rotatable widgets have the
click-through-transparency property.

[9] OrientedText v152 (published Oct 10, 2018)
... http://livecodeshare.runrev.com/stack/910

[8] Progress v130* (published Oct 10, 2018)
... http://livecodeshare.runrev.com/stack/909

[7] Polygon v121 (published Oct 10, 2018)
... http://livecodeshare.runrev.com/stack/908

[6] DigitClock v121 (published Oct 10, 2018)
... http://livecodeshare.runrev.com/stack/907

[5] ClockAround v122* (published Oct 10, 2018)
... http://livecodeshare.runrev.com/stack/906

[4] SVGText v152* (published Oct 10, 2018)
... http://livecodeshare.runrev.com/stack/905

[3] IconGrid v211 (published Oct 01, 2018)
... http://livecodeshare.runrev.com/stack/904

[2] DatePicker v109 (published Oct 01, 2018)
... http://livecodeshare.runrev.com/stack/903

[1] ColorPicker v102 (published Oct 01, 2018)
... http://livecodeshare.runrev.com/stack/901

The widgets above are free for non-commercial use
and have the source code included.
For commercial use please give a (small) fee to
the LC developer help fund.


___
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