[jawsscripts] Re: Differentiating between file name and a folder name withhin the JAWS scripts

  • From: "Harmony Neil" <harmonylm@xxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 1 Mar 2010 15:52:58 -0000

Why do you need to make a script for that anyway?  You can just go into
control panel and change the folder options and you can also get aws to read
the tooltips.  

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jamal Mazrui
Sent: 01 March 2010 3:30 PM
To: JAWSScripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Differentiating between file name and a folder
name withhin the JAWS scripts

Hi Vic,
Below is a function from Homer.jss of the HomerKit distribution
http://EmpowermentZone.com/kitsetup.zip

  Jamal

Int Function FolderExists(String sPath)
;Test whether folder exists

Var
Int iReturn,
Object oSystem, Object oNull

Let oSystem =CreateObject("Scripting.FileSystemObject")
Let iReturn =oSystem.FolderExists(sPath)

Let oSystem =oNull
Return iReturn
EndFunction

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Victor Tsaran
Sent: Sunday, February 28, 2010 6:59 PM
To: jawsscripts@xxxxxxxxxxxxx
Cc: Martin Slack
Subject: [jawsscripts] Re: Differentiating between file name and a folder 
name withhin the JAWS scripts

Thanks Martin and Doug,
Let me see which of the solutions is the cheapest one and I'll go for it.
Thanks again,
Vic

On 2/28/2010 4:01 AM, Martin Slack wrote:
> Hi vic,
>
>    As you surmised, the FileSystemObject has the methods
> FileExists(FileSpec) and FolderExists(FileSpec).  The VBScript
> reference says that the FileSpec must include a complete path
> specification (either absolute or relative) if the file or folder isn't 
expected to exist within the current folder.
>
>    Martin
>
>
> ----- Original Message -----
> From: "Victor Tsaran"<vtsaran@xxxxxxxxx>
> To:<jawsscripts@xxxxxxxxxxxxx>
> Sent: Sunday, February 28, 2010 1:43 AM
> Subject: [jawsscripts] Differentiating between file name and a folder
> name withhin the JAWS scripts
>
>
>> Hello all,
>> Anyone knows of a quick way to find out whether an item in question
>> is a file or a folder? I believe JAWS scripting language does not
>> provide this functionality. Will this have to be done through the
>> system file object? If yes, then how?
>>
>> Thanks,
>> V
>>
>> --
>> ---------------------------------------------------------------------
>> ---
>>
>> Check out my new album on iTunes at
>> http://ax.itunes.apple.com/us/artist/victor-tsaran/id344507896
>>
>> ---------------------------------------------------------------------
>> ---
>> __________
>> Visit and contribute to The JAWS Script Repository
>> http://jawsscripts.com
>>
>> View the list's information and change your settings at
>> //www.freelists.org/list/jawsscripts
>>
>
> __________
> Visit and contribute to The JAWS Script Repository
> http://jawsscripts.com
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
>


--
------------------------------------------------------------------------

Check out my new album on iTunes at
http://ax.itunes.apple.com/us/artist/victor-tsaran/id344507896

------------------------------------------------------------------------
__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts


__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: