The property system lets ghosts access and read or write various parameters that the baseware maintains while running.
There are two ways to use the property system: environment variables and regular tags.
See also the sections on the property system in Sakura Script and environment variables.
Reference a property as an environment variable and insert its value.
Use this when you simply want to display the value as-is.
The following inserts (displays) the baseware name and version at that location.
%property[baseware.name] ver,%property[baseware.version]
\![get,property,event name,property name]Use a Sakura Script tag to trigger a SHIORI Event with an arbitrary name, then retrieve a property through its Reference.
Use this when you want the SHIORI side to perform an action based on a property.
The following triggers a SHIORI Event with the ID "OnGetSakuraName" and sends the name of the partner (Teddy) of the ghost "Emily/Phase4.5" as reference0.
\![get,property,OnGetSakuraName,ghostlist(Emily/Phase4.5).keroname]
\![set,property,property name,value]Use a Sakura Script tag to change a property.
Not all properties can be written to, but those marked [SET enabled] on this page can be manipulated in this way.
The following hides the shell "ULTIMATE FORM" from the shell-switching menu in the owner-draw menu.
\![set,property,currentghost.shelllist(ULTIMATE FORM).menu,hidden]
Current year.
Current month.
Current day.
Current hour.
Current minute.
Current second.
Current milliseconds.
Current day of the week.
Gets the current mouse cursor position directly. X,Y separated by a comma, in pixels.
Information about the running OS. The following strings can be used for (key).
Information about the CPU in the running environment. The strings that can be used for (key) are as follows.
Information about the physical memory in the running environment. The strings that can be used for (key) are as follows.
Number of connected monitors.
Work area (left, top, right, bottom) of the monitor with ID. This is the area available for placing windows, excluding system-reserved areas such as the taskbar.
Rectangular coordinates (left, top, right, bottom) of the monitor with ID.
Color depth (bits per pixel) of the monitor with ID.
DPI of the monitor with ID.
Whether the monitor with ID is the primary monitor. Returns 1 if it is primary, and 0 otherwise.
Power and battery status. The following strings can be used for (key). If information cannot be retrieved, including on systems without a battery (such as desktop PCs), each value will be set to the value listed below for "when unavailable".
The number of drives (logical drives) recognized by the OS.
Information about the drive at index ID (zero-based). The ID range is from 0 to system.disk.count - 1. The strings that can be used for (key) are as follows.
Network connection status. The following strings can be used for (key).
Theme mode of the SSP application UI: dark or light.
OS theme mode: dark or light.
The state of the system's Do Not Disturb mode: quiet (enabled) or normal (disabled).
Baseware version information.
Baseware name.
SSP's window mode state. One of normal (normal mode), shared (window mode, with one container shared by all ghosts), or perghost (window mode, with one container per ghost).
When it is switched, OnWindowModeChange occurs.
Number of installed ghosts.
Retrieves information using the ghost's ghost name (name), main character name (sakuraname), or path.
[SSP 2.9.35] The ghost's UUID can also be specified (ghostlist(R5dVNluBvKjtQqjP0dAuoA==).name). It is matched when there is no match for the ID, path, or name. If multiple ghosts have the same UUID, the first one in the list is used.
Path to that ghost's icon.
Retrieve information from the ghost at position ID in the list.
Retrieve information from the ghost at the current position in the list.
Retrieves information using the ghost name (name), main character name (sakuraname), or path of a running ghost.
[SSP 2.9.35] The ghost's UUID can also be specified. It is matched when there is no match for the ID, path, or name. If multiple ghosts with the same UUID are running, the first one in the list is used.
Raises a SHIORI event (property.get or property.set) to get or set an extended property inside a ghost.
Gets information from the ghost at the specified ID position in the list of running ghosts.
Raises a SHIORI event (property.get or property.set) to get or set an extended property inside a ghost.
Gets information from the current ghost among the running ghosts.
Get information about the current ghost.
The status of the current ghost (SHIORI Status header).
Multiple values may be returned separated by commas (,), or an empty value may be returned.
\![enter,passivemode]).\![enter,inductionmode]).\t tag.\![enter,nouserbreak]).\q or \__q tag.The Status header can also be retrieved for each SHIORI as follows.
Gets information from the current ghost's shell by shell name or path.
Gets information from the shell at the specified ID position in the current ghost's list.
Gets information from the current shell of the current ghost.
The number of installed shells.
Maximum number of characters currently active.
Surface ID for the current ghost's scope ID. Can also be set, behaving the same as the \s[] tag.
Animation IDs for the current ghost's scope ID.
When retrieved: A comma-separated list of the IDs of animations currently running. This reflects only the state at the moment of retrieval; it is not guaranteed that the animations will still be running after the result is received and processed.
When set: Runs the specified animation IDs in addition. Animations with IDs that are not specified are not stopped; the specified animations are simply added. Multiple IDs can be set at once as a comma-separated list, behaving the same as specifying multiple \i[] tags in succession.
Default surface of the current ghost. Can also be set.
X-coordinate of the surface for the current ghost's scope ID.
Y-coordinate of the surface for the current ghost's scope ID.
The X coordinate on the screen of the reference point of the surface for the current ghost's scope ID.
For multiple monitors, the position within the entire virtual desktop, with the top-left of the primary monitor as the origin.
The reference point is usually the bottom center of the surface. This can be configured in the descript.txt of GHOST and SHELL using sakura(kero、char*).defaultx.
The Y coordinate on the screen of the reference point of the surface for the current ghost's scope ID.
For multiple monitors, the position in the entire virtual desktop, with the top-left of the primary monitor as the origin.
The reference point is usually the bottom center of the surface. It can be configured in the descript.txt of GHOST and SHELL using sakura(kero、char*).defaulty.
Window rectangle coordinates (left, top, right, bottom) for the current ghost's scope ID.
Name of the current ghost's scope ID.
ID 0 is the same as sakura.name in descript.txt, ID 1 is the same as kero.name, and IDs 2 and above are the same as char?.name.
Effective scale factor for the current ghost's scope ID. Since this is the result of the user setting × tag setting × SERIKO setting, it may include decimal places.
Work area (left, top, right, bottom) of the monitor displaying the window for the current ghost's scope ID. This is the area where windows can be placed, excluding system-reserved areas such as the taskbar.
Rectangle coordinates (left, top, right, bottom) of the monitor displaying the window for the current ghost's scope ID.
Color depth (bits per pixel) of the monitor displaying the window for the current ghost's scope ID.
DPI of the monitor displaying the window for the current ghost's scope ID.
Whether the monitor displaying the window for the current ghost's scope ID is the primary monitor. Returns 1 if it is the primary monitor, and 0 otherwise.
You can check in advance the window rectangle coordinates (left, top, right, bottom) at which the specified surface ID will be displayed for the specified scope ID of the current ghost.
Gets information about the current ghost's balloon.
Number of balloons for the current ghost.
Cursor filename (fingertip) indicating an area of the ghost that can be interacted with.
The following also applies to properties beginning with currentghost.mousecursor / currentghost.balloon.mousecursor:
Relative paths are searched in the shell, then in the ghost folder.
If SET to an empty string, the definition is treated as deleted, and the display reverts to what it was before the set.
The cursor can be specified in the same way as in the cursor section of surfaces.txt.
[SET enabled]
Cursor filename for the input box
Cursor filename (wristwatch) used when processing something and unable to respond.
Cursor filename indicating a grabbable part of the ghost (open hand).
Cursor filename indicating that a grabbable part of the ghost is being grabbed (closed hand).
Cursor filename (arrow) indicating an area of the ghost that cannot be interacted with.
Cursor file name for the fingertip used over areas of the balloon that can be operated.
Cursor file name for the balloon's input box.
Cursor file name for the wristwatch cursor used when the balloon is processing something and cannot respond.
Cursor file name for the arrow used over areas of the balloon that cannot be operated.
The cursor file name for the specified hit region name (relative path: searched in the shell folder first, then the ghost folder).
The following values can be specified for mouse????list: mouseuplist, mousedownlist, mousehoverlist, mousewheellist
When SET to an empty string, the definition is treated as deleted, restoring the shell's default cursor.
The same cursor specifications as in the cursor section of surfaces.txt can be used.
[SET supported]
\![set,property,currentghost.seriko.cursor.scope(0).mouseuplist(Head).path,頭.cur]Head当たり判定で使うカーソルを頭.curに変更\![set,property,currentghost.seriko.cursor.scope(0).mouseuplist(Head).path,]空っぽの指定だと定義削除となりシェルの標準カーソルとなる
The hit region name for the specified hit region name. This entry is for compatibility with index-based specification and has no particular meaning.
The cursor file name (relative path) at the specified position in the mouse cursor definition list.
[SET supported]
The hit region name at the specified position in the mouse cursor definition list.
The number of entries in the mouse cursor definition list.
The text displayed in the tooltip for the specified hit region name.
When SET to an empty string, the tooltip definition is treated as deleted, preventing the tooltip from being displayed.
[SET supported]
\![set,property,currentghost.seriko.tooltip.scope(0).textlist(Head).text,頭をなでる]Head当たり判定で表示するツールチップを「頭をなでる」に変更\![set,property,currentghost.seriko.tooltip.scope(0).textlist(Head).text,]空っぽの指定だと定義削除となり表示されなくなる
The hit region name for the specified hit region name. This entry is for compatibility with index-based specification and has no particular meaning.
The tooltip text at the specified position in the tooltip definition list.
[SET supported]
The hit region name at the specified position in the tooltip definition list.
The number of entries in the tooltip definition list.
A comma-separated list of all surface IDs enabled on the shell.
A comma-separated list of surface IDs enabled on the shell that have valid definitions in surfaces.txt.
The current setting of \![set,sticky-window,~].
Scope IDs in a group are comma-separated, and groups are separated by semicolons.
For example, if scopes 0 and 1 are joined together, and scopes 2 and 3 are joined together, the value is 0,1;2,3.
The value is empty if no settings are defined.
[SET supported]
When writing, the current settings are completely replaced using the same format. Note that this differs from Sakura Script tags, which add groups.
Writing an empty string clears all join settings.
Groups with fewer than two elements, and groups containing a scope ID already used in another group, are ignored.
The current state of the \![set,zorder,~] settings.
Elements within a group are separated by commas, and groups are separated by semicolons. Elements are listed from front to back.
In explicit element mode, the value is returned as abbreviations consisting of s (surface) or b (balloon) plus the scope ID, as in s0,b0,s1;s2,b2.
In the conventional mode, which specifies only scope IDs, only numbers are returned, as in 0,1;2,3.
In front and back mode, the front and back parts are separated by a semicolon, as in front,0,1;back,3. If only one is specified, only that part is returned.
If no settings exist, there is no value.
[SET enabled]
When written, a value in the same format completely replaces the current settings. Note that this differs from the Sakura Script tag, which adds groups.
Writing an empty string clears all Z-order settings.
Writing back a value as read restores the original state.
Groups with fewer than two elements are ignored (front and back may have only one). Explicit element mode and conventional mode are mutually exclusive, so the two modes cannot be mixed as in s0,b0;2,3. front and back cannot be mixed with other modes either; if mixed, the later specification takes precedence.
Number of balloon images in the current balloon.
ID of the current balloon.
X coordinate of the current balloon.
Y-coordinate of the current balloon.
Rectangular area of the current balloon.
Width available for drawing text in the current balloon. Indicates the entire drawing area, regardless of basepos.
For vertical writing, this is the width available in the direction the columns are arranged (right to left), and matches the drawing width after scrolling.
Width available for drawing text in the current balloon (taking basepos.x, the text starting point, into account).
For vertical writing, this is the width available in the direction the columns are arranged, taking the starting position of the first column (basepos) into account.
Height available for drawing text in the current balloon. Indicates the entire drawing area, regardless of basepos. Matches the drawing height after scrolling.
For vertical writing, this is the length of one column (the length of character advance that can be written in one column) and does not change when scrolling.
Height available for drawing text in the current balloon. Takes basepos.y, the text starting point, into account. Matches the drawing height before scrolling.
For vertical writing, this is the length of one column and takes the starting position for character advance (basepos) into account.
Maximum number of lines that fit in the current balloon. Indicates the entire drawing area, regardless of basepos. Matches the number of displayed lines after scrolling.
For vertical writing, read “lines” as “columns”; this is the maximum number of columns that fit.
Maximum number of lines that fit in the current balloon. Takes basepos.y, the text starting point, into account. Matches the number of displayed lines before scrolling.
For vertical writing, read “lines” as “columns”; this is the maximum number of columns that fit.
Starting point for drawing text in the current balloon (X coordinate). This is not necessarily the left edge of the drawing area. Coordinates are relative to the top-left corner of the balloon image.
For vertical writing, this indicates the right edge of the first column (= origin.x).
Starting point for drawing text in the current balloon (Y coordinate). This is not necessarily the top edge of the drawing area. Coordinates are relative to the top-left corner of the balloon image.
For vertical writing, this indicates the starting position for character advance (the top edge of the first character, = origin.y).
Width of a half-width string in the balloon's standard font. For a monospace font, this is half the character height; for a proportional font, it is the average width of the half-width uppercase letters A–Z.
Gets the balloon's background color as R,G,B values.
The “background color” is either the color used most frequently in the balloon (the representative color) or the average color of the entire balloon. Possible uses include controlling the text color to provide sufficient contrast with this color.
For reference: as of SSP 2.7.81, the implementation uses the “representative color.”
Effective scale of the current balloon. This is the result of multiplying the user setting, tag setting, and SERIKO setting, so it may be a decimal value.
Whether the current balloon uses vertical writing. 1 for vertical writing, 0 for horizontal writing.
validwidth and validheight represent dimensions in the “on-screen orientation” indicated by their names, even with vertical writing: for vertical writing, validwidth is the “width available in the direction the columns advance,” and validheight is the “length of one column.” lines indicates the “number of lines that fit” (or columns for vertical writing) in either orientation.
To calculate how many characters fit in one line (or column), check validheight for vertical writing and validwidth for horizontal writing. Use this property to determine which one to check.
※Specification changed in SSP 2.8.83. In 2.8.80, validwidth and validheight for vertical writing represented dimensions based on the “direction in which characters advance.”
The number of media items managed by the current ghost.
This includes all items opened with \![sound,play], \![sound,loop], \![sound,preload], and similar commands that have not yet been closed. Note that this is not limited to items currently playing.
Use playing to determine whether an individual media item is playing.
Gets information from the media item at the specified ID among those managed by the current ghost.
IDs are assigned in order from newest to oldest, starting at 0. An out-of-range ID causes the retrieval to fail.
The sound property name is described below. For writable properties and related notes, see here.
Gets information from the newest media item managed by the current ghost whose element name matches.
The element name is the file name, path, or URL specified in commands such as \![sound,play,~].
Note that the parentheses follow directly without a dot (currentghost.sound(~), not currentghost.sound.(~)).
The sound property name is described below. For writable properties and related notes, see here.
Retrieves information using the balloon's name or path.
[SSP 2.9.35] The balloon's UUID can also be specified. It is matched when there is no match for the ID, path, or name. If multiple balloons have the same UUID, the first one in the list is used.
Gets information from the balloon at the specified ID position in the list.
Number of installed balloons.
Retrieve information from a headline by its name or path.
Retrieve information from the headline at the specified ID position in the list.
Number of installed headlines.
Retrieve information about a plugin by its name, path, or ID.
Retrieve information from the plugin at the specified ID position in the list.
Trigger plugin events (property.get and property.set) to retrieve or set an extension property inside the plugin.
Trigger plugin events (property.get and property.set) to retrieve or set an extension property inside the plugin.
Number of installed plugins.
Retrieves information using the name or path of a recently used ghost.
[SSP 2.9.35] The ghost's UUID can also be specified.
Retrieve information from the ghost at the specified ID position in the recently used list.
Number of recently used ghosts.
Retrieves information using the name or path of a recently used balloon.
[SSP 2.9.35] The balloon's UUID can also be specified.
Retrieve information from the balloon at the specified ID position in the recently used list.
Number of recently used balloons.
Retrieve information from a recently used headline by its name or path.
Retrieve information from the headline at the specified ID position in the recently used list.
Number of recently used headlines.
Retrieves information using the name, path, or ID of a recently used plugin.
[SSP 2.9.35] The plugin's UUID can also be specified.
Retrieve information from the plugin at the specified ID position in the recently used list.
Number of recently used plugins.
The ghost's name.
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.
The name of the ghost's main character.
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.
The name of the ghost's partner character.
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.
The number of times the ghost has been started.
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.
The ghost's running time, in minutes.
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.
The number of times the ghost has been started (weekly report, aggregated from 7 days ago through today).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.
The ghost's running time, in minutes (weekly report, aggregated from 7 days ago through today).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.
The number of times the ghost has been started (monthly report, aggregated from 30 days ago through today).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.
The ghost's running time, in minutes (monthly report, aggregated from 30 days ago through today).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.
The ghost's share of running time (percentage, decimal).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.
The ghost's share of running time (percentage, decimal, weekly report, aggregated from 7 days ago through today).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.
The ghost's share of running time (percentage, decimal, monthly report, aggregated from 30 days ago through today).
[SSP 2.9.35] The ghost's UUID can also be specified in parentheses instead of its name. If multiple ghosts have the same UUID, the one with records is used.
Name of the ghost at that usage-rate rank.
Name of the main character of the ghost at that usage-rate rank.
Name of the partner of the ghost at that usage-rate rank.
Number of times the ghost at that usage-rate rank was launched.
Startup time of the ghost at that usage-rate rank. (In minutes)
Number of times the ghost at that usage-rate rank was launched. (Weekly report; total for the 7 days up to and including today)
Startup time of the ghost at that usage-rate rank. (In minutes; weekly report; total for the 7 days up to and including today)
Number of times the ghost at that usage-rate rank was launched. (Monthly report; total for the 30 days up to and including today)
Startup time of the ghost at that usage-rate rank. (In minutes; monthly report; total for the 30 days up to and including today)
Share of total startup time for the ghost at that usage-rate rank. (Percent, decimal)
Share of total startup time for the ghost at that usage-rate rank. (Percent, decimal; weekly report; total for the 7 days up to and including today)
Share of total startup time for the ghost at that usage-rate rank. (Percent, decimal; monthly report; total for the 30 days up to and including today)
The current number of log entries recorded by SSP. The following strings can be used as log types:
Each log type has a limit on the number of entries it retains (50 by default); when the limit is exceeded, the oldest entries are removed.
All developer.log.~ properties are read-only and can be retrieved regardless of the developer feature settings.
In error logs, consecutive entries with the same content may be consolidated into one summary entry with type System.
Retrieve information from the log entry at the specified ID.
IDs are numbered 0, 1, 2... from newest to oldest. Retrieval fails if the specified ID is out of range.
For log types, see developer.log.ログ種別.count. The following strings can be used as log property names.
The number of log entries whose name matches the specified name. Matching is case-insensitive.
Note that the parentheses follow directly without a dot (developer.log.script(~), not developer.log.script.(~)).
Gets information from the entry at the specified ID among log entries whose name matches the specified name.
IDs are assigned in order from newest to oldest, starting at 0. If .index(ID) is omitted (developer.log.log type(name).log property name), the newest entry is used.
Note that the parentheses follow directly without a dot. The log property names are listed here.
Name of the target.
Name of the target ghost's main character.
Name of the target ghost's counterpart.
Name of the target's author.
URL of the target's distribution site.
Path of the target.
Thumbnail of the target.
Update result for the target.
Update time for the target.
The target's homeurl.
The value of metainfo in the target's descript.txt (the URL of the metainfo folder). Returns the string as written.
Because the value is read from descript.txt, it is available when the ghost and balloon lists are loaded (it is not loaded lazily).
Retrieval fails if it is not specified in descript.txt. Retrieving metainfo also fails if only githubrepo is specified.
The value of githubrepo in the target's descript.txt (the GitHub project URL). Returns the string as written.
Because the value is read from descript.txt, it is available when the ghost and balloon lists are loaded (it is not loaded lazily).
Retrieval fails if it is not specified in descript.txt.
The value of uuid_base in the target's descript.txt. Returns the string as written.
Because the value is read from descript.txt, it is available when the ghost and balloon lists are loaded (it is not loaded lazily).
Retrieval fails if it is not specified in descript.txt.
The target's UUID. SSP calculates it from locally available information using the procedure in metainfo-standard. It does not access the network.
uuidvalue.master is the default branch).homeurl property, this does not use values obtained from var.txt or SHIORI. This avoids using the network or another process and ensures that the value does not change over time.name).uuidvalue.uuidvalue as UTF-8 (without appending a newline), calculate its MD5 hash, and encode the resulting binary as base64.For example, the UUID generated from https://raw.githubusercontent.com/Taromati2/Taromati2/master/.ukagaka/ is R5dVNluBvKjtQqjP0dAuoA==.
The metainfo folder is not read, so relocations via jump_to.txt and past UUIDs are not reflected.
Retrieval fails if uuidvalue is empty (there is no name either).
This UUID can be specified in parentheses in ghostlist, balloonlist, and activeghostlist instead of the name. It can also be used to specify an SSTP destination (ReceiverGhostUUID, IfGhost).
A UUID can also be specified instead of a name in Sakura Script commands that accept ghost, balloon, shell, or plugin names (\![change,ghost,...], \![call,ghost,...], \![change,shell,...], \![change,balloon,...], \![raiseother,...], \![notifyother,...], \![raiseplugin,...], \![notifyplugin,...], \![timerraiseother,...], \![timernotifyother,...], \![timerraiseplugin,...], \![timernotifyplugin,...]), and in the --ghost startup option. If the value does not match a name or similar identifier, it is checked against UUIDs only if it has the UUID format (22 base64 characters followed by ==).
In the property system, a UUID can also be specified in parentheses in history.ghost, history.balloon, history.plugin, and rateofuselist, in addition to ghostlist, balloonlist, activeghostlist, and pluginlist. History and usage statistics are recorded internally by name or path, not by UUID (the storage format is unchanged). When queried by UUID, the UUID is resolved to an installed ghost or other item before its records are retrieved.
A UUID can also be specified instead of a name in balloon and recommended.balloon in a ghost's descript.txt, and in recommended.ghost in a balloon's descript.txt.
Plugins have both an id in descript.txt (a GUID chosen by the plugin itself, matched as an ID as before) and this uuid. They are distinct, and id is not replaced by uuid.
The target's username (how it is addressed). This can be retrieved only when the target is running at the same time and supports retrieving its username. SSP 2.3.51 and later.
The target ghost's SHIORI.
Position of the target within the list.
The element name of the target media: the file name/path/URL itself specified by \![sound,play,~] and similar tags.
The resolved full path of the target media. If a URL was specified, this is the URL itself.
A process-unique identifier assigned to the target media.
Can be used to check whether it still refers to the same media.
The current playback position of the target media, in milliseconds.
Returns -1 for implementations or formats that cannot retrieve the position.
[SET enabled]Setting this has the same effect as --seektime= in \![sound,option,~].
The value format is also the same as --seektime=: if it does not contain ":", it is interpreted as an integer in milliseconds; if it contains ":", it is interpreted as [[hours:]minutes:]seconds[.milliseconds]. Prefixing the value with @ makes it relative to the current playback position; negative values can also be specified (for example, @-5000 rewinds by 5 seconds).
Total length of the target media. In milliseconds.
-1 if the length cannot be retrieved by the implementation or format.
1 if the target media is playing, or 0 otherwise.
This remains 1 while paused, so combine it with pause if necessary.
[SET enabled]Setting 1 has the same effect as \![sound,play,~], and setting 0 has the same effect as \![sound,stop,~].
When setting 1 to start playback, the target media's current loop settings and similar options are preserved.
1 if the target media is paused, or 0 otherwise.
[SET enabled]Setting 1 has the same effect as \![sound,pause,~], and setting 0 has the same effect as \![sound,resume,~].
Of the sound properties, position, playing, and pause support writing via \![set,property,~]. All other sound properties are read-only.
Writes are converted into the same processing as the corresponding Sakura Script tags. Thus, the result is exactly the same as when writing the tags directly; if the specified operation is invalid (for example, writing pause to media that is already stopped), nothing happens, just as with the tags.
Because the converted tags specify the target by element name, if multiple media items have the same element name, even when the target is specified by index(ID), the write is applied to the most recently created media item with a matching element name. Note that the target may differ from the one used for reading.
Also, writes are performed asynchronously, so the result may not yet be reflected if you read the same property immediately after writing to it.
1 if the target media was opened with \![sound,preload], or 0 otherwise.
1 if loop playback is specified for the target media (\![sound,loop]); otherwise, 0.
The most recent error message for the target media. An empty string if there is no error.
The song name (title) recorded in the tags of the target media.
See here for behavior when tags are missing or cannot be retrieved.
The artist name recorded in the tags of the target media.
If multiple values are recorded, they are joined with "; " (a semicolon followed by a space).
See here for behavior when tags are missing or cannot be retrieved.
The album artist name recorded in the tags of the target media.
If multiple values are recorded, they are joined with "; " (a semicolon followed by a space).
See here for behavior when tags are missing or cannot be retrieved.
The album name recorded in the tags of the target media.
See here for behavior when tags are missing or cannot be retrieved.
The genre recorded in the tags of the target media.
If multiple values are recorded, they are joined with "; " (a semicolon followed by a space).
See here for behavior when tags are missing or cannot be retrieved.
The year (CE) recorded in the tags of the target media.
See here for behavior when tags are missing or cannot be retrieved.
The track number recorded in the tags of the target media.
See here for behavior when tags are missing or cannot be retrieved.
The file path of the target media's album artwork image.
[2.9.32] SSP reads ID3 images, FLAC PICTURE blocks, and Ogg (Vorbis / Opus) METADATA_BLOCK_PICTURE itself. If there are multiple images, the front cover takes priority; if there is no front cover, the first image is used. Other formats (such as MP4) are retrieved from the OS.
See here for behavior when tags are missing or cannot be retrieved.
Sound properties that begin with meta. retrieve tag information embedded in media files (ID3, Vorbis Comment, MP4 metadata atoms, ASF attributes, etc.). All are read-only.
If tags are missing or cannot be retrieved for any reason, the property itself is treated as nonexistent. Unlike error, which returns an empty string, referencing the property itself fails (the behavior is the same as specifying a nonexistent property name). When handling media that may or may not have tags, write scripts with this in mind.
Naturally, all meta. properties fail to be retrieved for formats that do not have tags.
[2.9.32] SSP reads tags for ID3 (v1 / v2.2 / v2.3 / v2.4) in MP3 and other formats, comments in FLAC・Ogg Vorbis・Opus, and INFO in WAV・AVI (including WAV id3 chunks) itself, without relying on the OS. This allows it to read tags that the OS may misread (such as Shift_JIS and ISO-8859-1 tags interpreted using the OS's default character encoding, ID3v2 tags with unsynchronisation or extended headers, ID3v2.2, and WAV tags). Items SSP cannot read, as well as other formats (such as MP4・WMA), continue to be retrieved from the OS.
For tags with no specified character encoding (ID3v1, ID3v2 ISO-8859-1, and WAV・AVI INFO), SSP tries to determine the encoding in this order: UTF-8 → Shift_JIS → the OS's default character encoding. Since this is an estimate, especially on operating systems that are not Japanese, Western European and Japanese text may be mistaken for one another.
Retrieval is now performed per item: SSP reads the tags first, and only items it cannot read are supplemented by the OS or media playback components. Therefore, even if only some items can be retrieved from a tag, the remaining items may be supplemented by the OS or media playback components (as a result, in some environments, the artist value may be used when the tags have no album artist).