Re: A Question about Ask File

2019-03-21 Thread Roger Guay via use-livecode
Yeah, I know…..

> On Mar 21, 2019, at 7:46 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> It is ALWAYS the developer's fault. ;-)
> 
> Bob S
> 
> 
>> On Mar 20, 2019, at 19:37 , Roger Guay via use-livecode 
>>  wrote:
>> 
>> Yes, you are so right!  I found my problem: Some of my filenames had slashes 
>> in them which created confusion for the filePath. Once I got rid of the 
>> slashes, everything worked as one would expect. BTW, it’s not really my 
>> fault . . . I didn’t put the slashes in the names . . .  my customer did. 
>> Swine customer!!
>> 
>> Roger
> 
> ___
> 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: A Question about Ask File

2019-03-21 Thread Bob Sneidar via use-livecode
It is ALWAYS the developer's fault. ;-)

Bob S


> On Mar 20, 2019, at 19:37 , Roger Guay via use-livecode 
>  wrote:
> 
> Yes, you are so right!  I found my problem: Some of my filenames had slashes 
> in them which created confusion for the filePath. Once I got rid of the 
> slashes, everything worked as one would expect. BTW, it’s not really my fault 
> . . . I didn’t put the slashes in the names . . .  my customer did. Swine 
> customer!!
> 
> Roger

___
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: A Question about Ask File

2019-03-20 Thread Roger Guay via use-livecode
Yes, you are so right!  I found my problem: Some of my filenames had slashes in 
them which created confusion for the filePath. Once I got rid of the slashes, 
everything worked as one would expect. BTW, it’s not really my fault . . . I 
didn’t put the slashes in the names . . .  my customer did. Swine customer!!

Roger

> On Mar 20, 2019, at 7:22 PM, Brian Milby via use-livecode 
>  wrote:
> 
> You are providing a path and a file name.  They are just not provided as 
> separate parameters.  The suggested file name must be placed at the end of 
> the path location.
> On Mar 20, 2019, 9:42 PM -0400, Roger Guay via use-livecode 
> , wrote:
>> Thank you, Herman, but by providing this solution, are you saying that one 
>> cannot specify BOTH a defaultName and a defaultFilePathin a standard ask 
>> file prompt???
>> 
>> Roger
>> 
>>> On Mar 20, 2019, at 2:21 PM, hh via use-livecode 
>>>  wrote:
>>> 
>>> Create a *full* filePath. For example:
>>> 
>>> ask file "Save as:" with imagePath("export",".png")
>>> 
>>> function imagePath f,x
>>> put the effective filename of this stack into p
>>> set itemdel to slash
>>> put 0 into z
>>> put f into last item of p
>>> repeat while there is a file p
>>> add 1 to z
>>> put f into last item of p
>>> end repeat
>>> return p
>>> end imagePath
>>> 
 Roger G. wrote:
 Now how do I also add a default name to the mix?
 
> Alex T. wrote:
> ask file prompt [with *defaultFilePath*] [with filter *types*] [as sheet]
> 
>> Roger G. wrote:
>> In the Ask File prompt, is there a way to make the “Where” field to
>> always default to a specific folder?
>>> 
>>> 
>>> 
>>> ___
>>> 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: A Question about Ask File

2019-03-20 Thread Brian Milby via use-livecode
You are providing a path and a file name.  They are just not provided as 
separate parameters.  The suggested file name must be placed at the end of the 
path location.
On Mar 20, 2019, 9:42 PM -0400, Roger Guay via use-livecode 
, wrote:
> Thank you, Herman, but by providing this solution, are you saying that one 
> cannot specify BOTH a defaultName and a defaultFilePathin a standard ask file 
> prompt???
>
> Roger
>
> > On Mar 20, 2019, at 2:21 PM, hh via use-livecode 
> >  wrote:
> >
> > Create a *full* filePath. For example:
> >
> > ask file "Save as:" with imagePath("export",".png")
> >
> > function imagePath f,x
> > put the effective filename of this stack into p
> > set itemdel to slash
> > put 0 into z
> > put f into last item of p
> > repeat while there is a file p
> > add 1 to z
> > put f into last item of p
> > end repeat
> > return p
> > end imagePath
> >
> > > Roger G. wrote:
> > > Now how do I also add a default name to the mix?
> > >
> > > > Alex T. wrote:
> > > > ask file prompt [with *defaultFilePath*] [with filter *types*] [as 
> > > > sheet]
> > > >
> > > > > Roger G. wrote:
> > > > > In the Ask File prompt, is there a way to make the “Where” field to
> > > > > always default to a specific folder?
> >
> >
> >
> > ___
> > 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: A Question about Ask File

2019-03-20 Thread Roger Guay via use-livecode
Thank you, Herman, but by providing this solution, are you saying that one 
cannot specify BOTH a defaultName and a defaultFilePathin a standard ask file 
prompt???

Roger

> On Mar 20, 2019, at 2:21 PM, hh via use-livecode 
>  wrote:
> 
> Create a *full* filePath. For example:
> 
> ask file "Save as:" with imagePath("export",".png")
> 
> function imagePath f,x
>  put the effective filename of this stack into p
>  set itemdel to slash
>  put 0 into z
>  put f into last item of p
>  repeat while there is a file p
>add 1 to z
>put f into last item of p
>  end repeat
>  return p
> end imagePath
> 
>> Roger G. wrote:
>> Now how do I also add a default name to the mix?
>> 
>>> Alex T. wrote:
>>> ask file prompt [with *defaultFilePath*] [with filter *types*] [as sheet]
>>> 
 Roger G. wrote:
 In the Ask File prompt, is there a way to make the “Where” field to
 always default to a specific folder?
> 
> 
> 
> ___
> 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: A Question about Ask File

2019-03-20 Thread hh via use-livecode
Create a *full* filePath. For example:

ask file "Save as:" with imagePath("export",".png")

function imagePath f,x
  put the effective filename of this stack into p
  set itemdel to slash
  put 0 into z
  put f into last item of p
  repeat while there is a file p
add 1 to z
put f into last item of p
  end repeat
  return p
end imagePath

> Roger G. wrote:
> Now how do I also add a default name to the mix?
> 
> > Alex T. wrote:
> > ask file prompt [with *defaultFilePath*] [with filter *types*] [as sheet]
> > 
> >> Roger G. wrote:
> >> In the Ask File prompt, is there a way to make the “Where” field to
> >> always default to a specific folder?



___
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: A Question about Ask File

2019-03-20 Thread Roger Guay via use-livecode
Ok, that’s very reasonable and works. Now how do I also add a default name to 
the mix? If I append a defaultFileName to the defaultFilePath, it no longer 
sticks to the defaultFilePath.



Roger


> On Mar 20, 2019, at 9:25 AM, Alex Tweedly via use-livecode 
>  wrote:
> 
> 
> ask file prompt [with *defaultFilePath*] [with filter *types*] [as sheet]
> 
> 
> On 20/03/2019 16:13, Roger Guay via use-livecode wrote:
>> This should be easy, but I’m having difficulty with this:
>> 
>> In the Ask File prompt, is there a way to make the “Where” field to always 
>> default to a specific folder?
>> 
>> 
>> Thanks,
>> 
>> Roger
>> ___

___
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: A Question about Ask File

2019-03-20 Thread Alex Tweedly via use-livecode


ask file prompt [with *defaultFilePath*] [with filter *types*] [as sheet]


On 20/03/2019 16:13, Roger Guay via use-livecode wrote:

This should be easy, but I’m having difficulty with this:

In the Ask File prompt, is there a way to make the “Where” field to always 
default to a specific folder?


Thanks,

Roger
___
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