ShareShortcuts
Создать форк «Delayed Time iMessage»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы jonathandodds получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
77K
Сохранено
4
Действия
14
Категория
Messaging
Версия
2.0
Язык
EN

jText Delayed Time iMessage

v1.0 19Oct2018 - Initial version

v2.0 20Oct2018 - Added informational display to “Select Contact To Message” alert dialogue

@jonathandodds - jonathan.dodds@outlook.com

(NB; read until the end to see why this will not always work due to an apparent security limitation)

Allows a user to send a delayed-in-time iMessage.That is, select your contact and write your message now, but have it sent automatically at a later date and time of your choosing.

Can only select a cell/mobile number for the moment, not iCloud email address, thus can only say this will work with iPhones and not iPads.

The app will work as expected for some length of time as long as the device is or remains unlocked. It appears that as soon as the device auto-locks then the process is hung up with the follow error given:

"The request was denied by service delegate (SBMainWorkspace) for reason: Locked ('unable to launch com.apple.MobileSMS because the device was, could not be, unlocked")"

If you keep your phone unlocked long enough, perhaps while playing a game or working on something else, the shortcut should work.

Что нового

Версия 2.0

Added informational display to “Select Contact To Message” alert dialogue

История версий
2.0 20 окт 2018 г.

Added informational display to “Select Contact To Message” alert dialogue

1.0 20 окт 2018 г.

First release

Что делает

Действий: 14
  1. Comment
    jText Delayed Time iMessage v1.0 19Oct2018 @jonathandodds [email protected] (NB; read until the end to see why this will not always work due to an apparent security limitation) Allows a user to send a delayed-in-time iMessage. That is, sele…
  2. Show Alert
    Select Contact To Message
  3. Select Phone Number
  4. Get Details of Contacts
  5. Ask for Input
    Enter Your Message
  6. Get Text from Input
  7. Copy to Clipboard
  8. Ask for Input
    When do you want to send the message?
  9. Get Time Between Dates
  10. Get Variable
  11. Calculate
  12. Wait
  13. Nothing
  14. Send Message

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/text'
#include 'actions/contacts'
#define color taupe
#define glyph messageBubbles

/*
jText Delayed Time iMessage
v1.0 19Oct2018
@jonathandodds
[email protected]

(NB; read until the end to see why this will not always work due to an apparent security limitation)

Allows a user to send a delayed-in-time  iMessage.
That is, select your contact and write your message now, but have it sent automatically at a later date and time of your choosing.

The app will work as expected for some length of time as long as the device is or remains unlocked. It appears that as soon as the device auto-locks then the process is hung up with the follow error given:

"The request was denied by service delegate (SBMainWorkspace) for reason: Locked ('unable to launch com.apple.MobileSMS because the device was, could not be, unlocked")"

If you keep your unlocked long enough, perhaps while playing a game or working on something else, the shortcut should work.
*/
alert("Works only with cell/mobile numbers at the moment, and not iCloud email addresses.", "Select Contact To Message")
const PhoneNumbers = selectPhoneNumber()
getContactDetail(nil, PhoneNumbers)
prompt("Enter Your Message")
getText(nil)
setClipboard(nil, true, "")
prompt("When do you want to send the message?", "Date")
rawAction("is.workflow.actions.gettimebetweendates", {
	"WFTimeUntilCustomDate": "",
	"WFTimeUntilReferenceDate": "Right Now",
	"WFTimeUntilUnit": "Seconds"
})
// TODO: Get Variable not supported: Assign variable here to 'TimeBetweenDates'.
const CalculationResult = nil * 1
wait(CalculationResult)
nothing()
sendMessage(PhoneNumbers, Clipboard, false)
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
20 окт 2018 г.
danielbahl

Awesome update ! Thanks!

20 окт 2018 г.
danielbahl

Awesome Work! @jonathandodds and welcome to ShareShortcuts.com :) 🎉

Реклама

Вам также может понравиться

См. все
Реклама