You are here: PSPad forum > English discussion forum > Re: Project Files!

Re: Project Files!

#1 Project Files!

Posted by: pythonui | Date: 2015-05-26 10:17 | IP: IP Logged

I have following Project structure:

-->Project
------>Folder1
---------> file1
---------> file2
------>Folder2
---------> file3
---------> file4
------>file5

projectFilesCount = 5
When iterate on projectFiles(n){n=0 to projectFilesCount} its also give Project,Folder1,Folder2 in the result.So I am not able to get details of file3 and file4 and file5.

Edited 3 time(s). Last edit at 2015-05-26 10:20 by pythonui.

Options: Reply | Quote | Up ^


#2 Re: Project Files!

Posted by: pspad | Date: 2015-05-26 10:50 | IP: IP Logged

Quote from readme.rtf from the script folder:

projectItemsCount: integer
returns number of all items (files and folders) in project. Use cycle from 0 to projectItemsCount-1
projectItems(index: integer): string
returns item name for index. If item doesn't exists, returns empty string
projectItemType(index: integer): integer
returns project item type. 1: folder, 2: file, -1: item doesn't exists

Options: Reply | Quote | Up ^


#3 Re: Project Files!

Posted by: pythonui | Date: 2015-05-26 11:00 | IP: IP Logged

I have checked help file for pspad !

readme.rtf is not formatted in my folder its contain unwanted chars!

Thanks for help!

Options: Reply | Quote | Up ^


#4 Re: Project Files!

Posted by: pythonui | Date: 2015-05-26 11:02 | IP: IP Logged

projectFilesCount\b0 : integer\par
\cf3\f4\fs18 returns number of files (not folders) in project. Use cycle from 0 to projectFilesCount-1\par
\cf2\b\f3\fs20 projectFiles\b0 (index: integer): string\par
\cf3\f4\fs18 returns file name for index. If file doesn't exists, returns empty string\par
\cf2\b\f3\fs20 projectItemsCount\b0 : integer\par
\cf3\f4\fs18 returns number of all items (files and folders) in project. Use cycle from 0 to projectFilesCount-1\par
\cf2\b\f3\fs20 projectItems\b0 (index: integer): string\par
\cf3\f4\fs18 returns item name for index. If item doesn't exists, returns empty string\par
\cf2\b\f3\fs20 projectItemType\b0 (index: integer): integer\par
\cf3\f4\fs18 returns project item type. 1: folder, 2: file, -1: item doesn't exists\par
\cf2\b\f3\fs20 projectFileName\b0 : string\par
\cf3\f4\fs18 returns project file name\par
\cf2\b\f3\fs20 projectSave\par
\cf3\b0\f4\fs18 saves project\par

Edited 1 time(s). Last edit at 2015-05-26 11:02 by pythonui.

Options: Reply | Quote | Up ^


#5 Re: Project Files!

Posted by: pspad | Date: 2015-05-26 11:13 | IP: IP Logged

RTF isn't text file. Open it in WordPad (part of Windows) or Word, OpenOffice e.t.c.

Thank you for note about help. I will update it.

Edited 1 time(s). Last edit at 2015-05-26 11:14 by pspad.

Options: Reply | Quote | Up ^


#6 Re: Project Files!

Posted by: pythonui | Date: 2015-05-26 11:18 | IP: IP Logged

Hello,

Is it possible to convert rtf to text(in folder,for future)? So we can see it in pspad itself winking smiley

Update : Sorry,I have checked readme in open office its looks good!

Thanks

Edited 1 time(s). Last edit at 2015-05-26 11:21 by pythonui.

Options: Reply | Quote | Up ^


#7 Re: Project Files!

Posted by: Andreas | Date: 2015-05-26 13:08 | IP: IP Logged

pythonui:
readme.rtf is not formatted in my folder its contain unwanted chars!

Try to set pspad format to utf8 and open it again. I have no unwanted chars in there.

pythonui:
Is it possible to convert rtf to text...?

You can quick open with wordpad. Also you can save as .txt from within wordpad.

Options: Reply | Quote | Up ^


#8 Re: Project Files!

Posted by: pythonui | Date: 2015-05-27 03:03 | IP: IP Logged

Thanks

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR