ShareShortcuts

載入檔案

把取得的json檔寫入指定路徑,並生成一個索引檔案。

sonic238178
Fork “載入檔案”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so sonic238178 gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
52K
Saved
1
Actions
15
Category
API
Version
1.0
Language
ZH

把取得的json檔寫入指定路徑,並生成一個索引檔案。

What's New

Version 1.0

First release

Version History
1.0 Feb 28, 2021

First release

What it does

15 actions
  1. Create Folder
  2. Get File
  3. Delete Files
  4. Choose from Menu
    檔案所在位置
  5. Choose from Menu
    iCloud
  6. Get File
  7. Get Details of Files
  8. Choose from Menu
    Dropbox
  9. Get File
  10. Get Details of Files
  11. Text
  12. Append to Text File
  13. Save File
  14. Save File
  15. Show Alert
    已載入檔案

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/documents'
createFolder("學生名單json/")
const  = getFile("學生名單json/檔名列表.txt", false)
deleteFiles()

menu "檔案所在位置" {
item "iCloud":
	const 1 = getFile("")
	const 2 = getFileDetail(nil, "Name")
item "Dropbox":
	const 3 = getFile("")
	const 4 = getFileDetail(nil, "Name")
}
const 5 = "{}"
const 6 = appendToFile("學生名單json/檔名列表.txt", 5)
saveFile("學生名單json/檔名列表.txt", 6, true)
saveFile("學生名單json/", 1, true)
alert("此捷徑無需再執行", "已載入檔案")
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

You Might Also Like

See All
Advertisement