Irvue AppleScript Commands
Change current wallpaper
- Command Name: change current wallpaper
- Description: Changes current wallpaper. If option "multiple monitors" in settings was set to "different wallpapers", then wallpaper will be changed only on current monitor (monitor with active window or pointer).
- Parameters: no parameters
- Return value: no return value
Example:
tell application "Irvue"
change current wallpaper
end tell
Load previous wallpaper
- Command Name: load previous wallpaper
- Description: Loads previously used wallpaper in channel.
- Parameters: no parameters
- Return value: no return value
Example:
tell application "Irvue"
load previous wallpaper
end tell
Change all wallpapers
- Command Name: change all wallpapers
- Description: Changes wallpaper on all displays.
- Parameters: no parameters
- Return value: no return value
Example:
tell application "Irvue"
change all wallpapers
end tell
Load first wallpaper
- Command Name: load first wallpaper
- Description: Loads first wallpaper in current channel.
- Parameters: no parameters
- Return value: no return value
Example:
tell application "Irvue"
load first wallpaper
end tell
Get All Channels
- Command Name: get all channels
- Description: Returns list of available channels.
- Parameters: no parameters
- Return value: List of strings
Example:
tell application "Irvue"
get all wallpapers
end tell
Example response:
{"All photos", "Collection #126", "MacOS Wallpapers", "Featured"}
Get Default Channels
- Command Name: get default channels
- Description: Returns list of names of default channels.
- Parameters: no parameters
- Return value: List of strings
Example:
tell application "Irvue"
get default wallpapers
end tell
Example response:
{"Featured", "All photos"}
Get Current Channel
- Command Name: get current channel
- Description: Returns name of current channel.
- Parameters: no parameters
- Return value: String
Example:
tell application "Irvue"
get current channel
end tell
Example response:
"MacOS Wallpapers"
Set Current Channel
- Command Name: set current channel
- Description: Changes current channel to the one with given name
- Parameters: String - channel name
- Return value: no return value
Example:
tell application "Irvue"
set current channel "Featured"
end tell
Remove Channel
- Command Name: remove channel
- Description: Removes channel with given name
- Parameters: String - channel name
- Return value: no return value
Example:
tell application "Irvue"
remove channel "Nature"
end tell
Add Channels
- Command Name: add channel from
- Description: Adds all possible channels from given URL or search query
- Parameters: String - URL to Unsplash page or search query
- Return value: no return value
Example:
tell application "Irvue"
add channels from "Nature"
end tell
tell application "Irvue"
add channels from "https://unsplash.com/@leonspok"
end tell
tell application "Irvue"
add channels from "https://unsplash.com/collections/curated/127"
end tell
tell application "Irvue"
add channels from "https://unsplash.com/collections/347317/tech"
end tell
Set Update Interval
- Command Name: set update interval
- Description: Changes update interval to the given. If specified number is 0 or less, then update will be set to "Update manually".
- Parameters: Number - Update interval in minutes
- Return value: no return value
Example:
tell application "Irvue"
set update interval 15
end tell
Save current wallpaper
- Command Name: save current wallpaper
- Description: Saves wallpaper from active screen
- Parameters: no parameters
- Return value: no return value
Example:
tell application "Irvue"
save current wallpaper
end tell
Toggle like current wallpaper
- Command Name: toggle like current wallpaper
- Description: Likes or unlikes wallpaper from current screen
- Parameters: no parameters
- Return value: no return value
Example:
tell application "Irvue"
toggle like current wallpaper
end tell
Get link to Unsplash for the current wallpaper
- First supported version: 2.7.13
- Command Name: get current wallpaper url
- Description: Returns Unsplash URL of the current wallpaper
- Parameters: no parameters
- Return value: no return value
Example:
tell application "Irvue"
get current wallpaper url
end tell
Get information about the current wallpaper
- First supported version: 2.7.15
- Command Name: get current wallpaper info
- Description: Returns AppleScript record with the information about the current wallpaper
- Parameters: no parameters
- Return value: record
Example #1:
tell application "Irvue"
set wallpaper to get current wallpaper info
wallpaper
end tell
Output #1:
{likes count:301, location longitude:0.0, is liked:false, location latitude:0.0, path:"/Users/igorsavelev/Library/Containers/com.leonspok.osx.Irvue/Data/Library/Application Support/Irvue/unsplash_111.jpg", unsplash url:"https://unsplash.com/photos/-111", name of the author:"Author"}
Example #2:
tell application "Irvue"
set wallpaper to get current wallpaper info
likes count of wallpaper
end tell
Output #2:
301