This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generateUUID | |
local theError, theUUID | |
switch the platform | |
case "macos" | |
case "linux" | |
put shell("uuidgen") into theUUID | |
put word 1 to -1 of theUUID into theUUID | |
put the result into theError | |
break |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* \brief Converts a styledText array to Markdown. | |
* | |
* \param pTextA The styledText array to convert. | |
* | |
* Test while typing in a field: | |
* on textChanged | |
* put StyledTextToMarkdown(the styledText of me) | |
* pass textChanged | |
* end textChanged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
To use: | |
1) Get path to file/folder using file selection dialog. | |
2) Pass path to secscopGetBookmarkFromURL in order to get bookmark data for it. | |
3) Store this bookmark data somehow. | |
4) Tell the OS you want access to the file using secscopInitializeURLFromBookmarkData(). Store security-scoped url returned for later. | |
5) When you are done using the file call secscopStopUsingURL. | |
You will need to do steps 4 and 5 every time you want to open a file across sessions. For example, if you have a recent files menu or a folder that a user selects once and you write data to across sessions. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* \brief Converts a styled text array to XHTML. | |
* | |
* \param pStyledTextA The array to convert. | |
* | |
* \return XHTML | |
*/ | |
function ConvertStyledTextToXHTML pStyledTextA | |
local theXHTML, theRun, theString | |
local theListKey |
NewerOlder