ShareShortcuts
Fork “Delete Text”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så hunter9888x får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
63K
Gemt
2
Handlinger
236
Kategori
Værktøjer
Version
1.5
Sprog
EN

Delete text in file name or extension

Delete text inside file

Delete between text

Save to /Shortcuts/Delete text

Save to specific folder

Make folder

Created by me

Nyheder

Version 1.5

Few changes

Versionshistorik
1.5 19. jan. 2020

Few changes

1.4 19. jan. 2020

A few changes

1.3 11. jan. 2020

Delete between what

1.2 21. dec. 2019

Save too options

1.1 21. dec. 2019

Fixed it not working

1.0 15. dec. 2019

First release

Hvad den gør

236 handlinger
  1. Choose from Menu
    Delete text
  2. Choose from Menu
    delete in file extension
  3. Ask for Input
    Delete what text
  4. Set Variable
    Delete text
  5. Get File
  6. Repeat with Each
  7. Get Text from Input
  8. Set Variable
    Get text
  9. Get Details of Files
  10. Set Variable
    Extension
  11. Get Name
  12. Set Variable
    Name
  13. If
  14. Replace Text
  15. Text
  16. Set Name
  17. Choose from Menu
    delete in file name
  18. Ask for Input
    Delete what text
  19. Set Variable
    Delete text
  20. Get File
  21. Repeat with Each
  22. Get Text from Input
  23. Set Variable
    Get text
  24. Get Details of Files
  25. Set Variable
    Extension
  26. Get Name
  27. Set Variable
    Name
  28. If
  29. Replace Text
  30. Text
  31. Set Name
  32. Choose from Menu
    delete inside file
  33. Ask for Input
    Delete what text
  34. Set Variable
    Delete text
  35. Get File
  36. Repeat with Each
  37. Get Text from Input
  38. Set Variable
    Get text
  39. Get Details of Files
  40. Set Variable
    Extension
  41. Get Name
  42. Set Variable
    Name
  43. If
  44. Replace Text
  45. Text
  46. Set Name
  47. Choose from Menu
    delete between what options
  48. Choose from Menu
    Delete between what
  49. Choose from Menu
    both sides of text
  50. Ask for Input
    Look For what on left & right side of text
  51. Set Variable
    Both sides of text
  52. Ask for Input
    Delete what between both sides of text
  53. Set Variable
    Delete text
  54. Get File
  55. Repeat with Each
  56. Get Name
  57. Set Variable
    Name
  58. Get Text from Input
  59. Set Variable
    Get text
  60. If
  61. Replace Text
  62. Text
  63. Set Name
  64. Choose from Menu
    both sides of text (no space)
  65. Ask for Input
    Look For what on left & right side of text
  66. Set Variable
    Both sides of text
  67. Ask for Input
    Delete what between both sides of text
  68. Set Variable
    Delete text
  69. Get File
  70. Repeat with Each
  71. Get Name
  72. Set Variable
    Name
  73. Get Text from Input
  74. Set Variable
    Get text
  75. If
  76. Replace Text
  77. Text
  78. Set Name
  79. Choose from Menu
    two different sides of text
  80. Ask for Input
    Look for what on left side of text
  81. Set Variable
    Left side of text
  82. Ask for Input
    Look for what on right side of text
  83. Set Variable
    Right side of text
  84. Ask for Input
    Delete what between left & right side of text
  85. Set Variable
    Delete text
  86. Get File
  87. Repeat with Each
  88. Get Name
  89. Set Variable
    Name
  90. Get Text from Input
  91. Set Variable
    Get text
  92. If
  93. Replace Text
  94. Text
  95. Set Name
  96. Choose from Menu
    two different sides of text (no space)
  97. Ask for Input
    Look for what on left side of text
  98. Set Variable
    Left side of text
  99. Ask for Input
    Look for what on right side of text
  100. Set Variable
    Right side of text
  101. Ask for Input
    Delete what between left & right side of text
  102. Set Variable
    Delete text
  103. Get File
  104. Repeat with Each
  105. Get Name
  106. Set Variable
    Name
  107. Get Text from Input
  108. Set Variable
    Get text
  109. If
  110. Replace Text
  111. Text
  112. Set Name
  113. Choose from Menu
    create folder
  114. Ask for Input
    set folder name to use
  115. Set Variable
    Folder name
  116. Create Folder
  117. Show Result
  118. Stop This Shortcut
  119. Choose from Menu
    save options
  120. Choose from Menu
    Delete text save options
  121. Choose from Menu
    delete in file name
  122. Ask for Input
    Delete what text
  123. Set Variable
    Delete text
  124. Get File
  125. Repeat with Each
  126. Get Text from Input
  127. Set Variable
    Get text
  128. Get Details of Files
  129. Set Variable
    Extension
  130. Get Name
  131. Set Variable
    Name
  132. If
  133. Replace Text
  134. Text
  135. Set Name
  136. Choose from Menu
    delete in file extension
  137. Ask for Input
    Delete what text
  138. Set Variable
    Delete text
  139. Get File
  140. Repeat with Each
  141. Get Text from Input
  142. Set Variable
    Get text
  143. Get Details of Files
  144. Set Variable
    Extension
  145. Get Name
  146. Set Variable
    Name
  147. If
  148. Replace Text
  149. Text
  150. Set Name
  151. Choose from Menu
    delete inside file
  152. Ask for Input
    Delete what text
  153. Set Variable
    Delete text
  154. Get File
  155. Repeat with Each
  156. Get Text from Input
  157. Set Variable
    Get text
  158. Get Details of Files
  159. Set Variable
    Extension
  160. Get Name
  161. Set Variable
    Name
  162. If
  163. Replace Text
  164. Text
  165. Set Name
  166. Choose from Menu
    delete between what options
  167. Choose from Menu
    Delete between what save options
  168. Choose from Menu
    both sides of text
  169. Ask for Input
    Look For what on left & right side of text
  170. Set Variable
    Both sides of text
  171. Ask for Input
    Delete what between both sides of text
  172. Set Variable
    Delete text
  173. Get File
  174. Repeat with Each
  175. Get Name
  176. Set Variable
    Name
  177. Get Text from Input
  178. Set Variable
    Get text
  179. If
  180. Replace Text
  181. Text
  182. Set Name
  183. Choose from Menu
    both sides of text (no space)
  184. Ask for Input
    Look For what on left & right side of text
  185. Set Variable
    Both sides of text
  186. Ask for Input
    Delete what between both sides of text
  187. Set Variable
    Delete text
  188. Get File
  189. Repeat with Each
  190. Get Name
  191. Set Variable
    Name
  192. Get Text from Input
  193. Set Variable
    Get text
  194. If
  195. Replace Text
  196. Text
  197. Set Name
  198. Choose from Menu
    two different sides of text
  199. Ask for Input
    Look for what on left side of text
  200. Set Variable
    Left side of text

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#include 'actions/text'
#define color darkblue
#define glyph magicWandAlt


menu "Delete text" {
item "delete in file name":
	prompt("Delete what text")
	@DeleteText
	const File = getFileFromFolder(, "")
	for _ in File {
		getText(@RepeatItem)
		@GetText
		getFileDetail(nil, "File Extension")
		@Extension
		getName(@RepeatItem)
		@Name
		if @Extension contains @DeleteText {
			replaceText(@DeleteText, "", @Extension)
			const Text = "{@GetText}"
			setName(Text, "{@Name}.{}")
		}
	}
item "delete in file extension":
	prompt("Delete what text")
	@DeleteText
	const File1 = getFile("")
	for _ in File1 {
		getText(@RepeatItem)
		@GetText
		getFileDetail(nil, "File Extension")
		@Extension
		getName(@RepeatItem)
		@Name
		if @Name contains @DeleteText {
			replaceText(@DeleteText, "", @Name)
			const Text1 = "{@GetText}"
			setName(Text1, "{}.{@Extension}")
		}
	}
item "delete inside file":
	prompt("Delete what text")
	@DeleteText
	const File2 = getFile("")
	for _ in File2 {
		getText(@RepeatItem)
		@GetText
		getFileDetail(nil, "File Extension")
		@Extension
		getName(@RepeatItem)
		@Name
		if @GetText contains @DeleteText {
			replaceText(@DeleteText, "", @GetText)
			const Text2 = "{}"
			setName(Text2, "{@Name}.{@Extension}")
		}
	}
item "delete between what options":
	menu "Delete between what" {
	item "both sides of text":
		prompt("Look For what on left & right side of text")
		@BothSidesOfText
		prompt("Delete what between both sides of text")
		@DeleteText
		const File3 = getFile("")
		for _ in File3 {
			getName(@RepeatItem)
			@Name
			getText(@RepeatItem)
			@GetText
			if @GetText contains @DeleteText {
				replaceText("(\{@BothSidesOfText}.*) {@DeleteText} (.*.*\{@BothSidesOfText})", "$1 $2", @GetText, true)
				const Text3 = "{}"
				setName(Text3, @Name)
			}
		}
	item "both sides of text (no space)":
		prompt("Look For what on left & right side of text")
		@BothSidesOfText
		prompt("Delete what between both sides of text")
		@DeleteText
		const File3 = getFile("")
		for _ in File3 {
			getName(@RepeatItem)
			@Name
			getText(@RepeatItem)
			@GetText
			if @GetText contains @DeleteText {
				replaceText("(\{@BothSidesOfText}.*){@DeleteText}(.*.*\{@BothSidesOfText})", "$1$2", @GetText, true)
				const Text3 = "{}"
				setName(Text3, @Name)
			}
		}
	item "two different sides of text":
		prompt("Look for what on left side of text")
		@LeftSideOfText
		prompt("Look for what on right side of text")
		@RightSideOfText
		prompt("Delete what between left & right side of text")
		@DeleteText
		const File4 = getFile("")
		for _ in File4 {
			getName(@RepeatItem)
			@Name
			getText(@RepeatItem)
			@GetText
			if @GetText contains @DeleteText {
				replaceText("(\{@LeftSideOfText}.*) {@DeleteText} (.*.*\{@RightSideOfText})", "$1 $2", @GetText, true)
				const Text4 = "{}"
				setName(Text4, @Name)
			}
		}
	item "two different sides of text (no space)":
		prompt("Look for what on left side of text")
		@LeftSideOfText
		prompt("Look for what on right side of text")
		@RightSideOfText
		prompt("Delete what between left & right side of text")
		@DeleteText
		const File4 = getFile("")
		for _ in File4 {
			getName(@RepeatItem)
			@Name
			getText(@RepeatItem)
			@GetText
			if @GetText contains @DeleteText {
				replaceText("(\{@LeftSideOfText}.*){@DeleteText}(.*.*\{@RightSideOfText})", "$1$2", @GetText, true)
				const Text4 = "{}"
				setName(Text4, @Name)
			}
		}
	}
item "create folder":
	prompt("set folder name to use")
	@FolderName
	createFolder(@FolderName)
	show("New folder is /Shortcuts/{@FolderName}")
	stop()
item "save options":
	menu "Delete text save options" {
	item "delete in file name":
		prompt("Delete what text")
		@DeleteText
		const File1 = getFile("")
		for _ in File1 {
			getText(@RepeatItem)
			@GetText
			getFileDetail(nil, "File Extension")
			@Extension
			getName(@RepeatItem)
			@Name
			if @Name contains @DeleteText {
				replaceText(@DeleteText, "", @Name)
				const Text1 = "{@GetText}"
				setName(Text1, "{}.{@Extension}")
			}
		}
	item "delete in file extension":
		prompt("Delete what text")
		@DeleteText
		const File5 = getFile("")
		for _ in File5 {
			getText(@RepeatItem)
			@GetText
			getFileDetail(nil, "File Extension")
			@Extension
			getName(@RepeatItem)
			@Name
			if @Extension contains @DeleteText {
				replaceText(@DeleteText, "", @Extension)
				const Text = "{@GetText}"
				setName(Text, "{@Name}.{}")
			}
		}
	item "delete inside file":
		prompt("Delete what text")
		@DeleteText
		const File2 = getFile("")
		for _ in File2 {
			getText(@RepeatItem)
			@GetText
			getFileDetail(nil, "File Extension")
			@Extension
			getName(@RepeatItem)
			@Name
			if @GetText contains @DeleteText {
				replaceText(@DeleteText, "", @GetText)
				const Text2 = "{}"
				setName(Text2, "{@Name}.{@Extension}")
			}
		}
	item "delete between what options":
		menu "Delete between what save options" {
		item "both sides of text":
			prompt("Look For what on left & right side of text")
			@BothSidesOfText
			prompt("Delete what between both sides of text")
			@DeleteText
			const File3 = getFile("")
			for _ in File3 {
				getName(@RepeatItem)
				@Name
				getText(@RepeatItem)
				@GetText
				if @GetText contains @DeleteText {
					replaceText("(\{@BothSidesOfText}.*) {@DeleteText} (.*.*\{@BothSidesOfText})", "$1 $2", @GetText, true)
					const Text3 = "{}"
					setName(Text3, @Name)
				}
			}
		item "both sides of text (no space)":
			prompt("Look For what on left & right side of text")
			@BothSidesOfText
			prompt("Delete what between both sides of text")
			@DeleteText
			const File6 = getFile("")
			for _ in File6 {
				getName(@RepeatItem)
				@Name
				getText(@RepeatItem)
				@GetText
				if @GetText contains @DeleteText {
					replaceText("(\{@BothSidesOfText}.*){@DeleteText}(.*.*\{@BothSidesOfText})", "$1$2", @GetText, true)
					const Text3 = "{}"
					setName(Text3, @Name)
				}
			}
		item "two different sides of text":
			prompt("Look for what on left side of text")
			@LeftSideOfText
			prompt("Look for what on right side of text")
			@RightSideOfText
			prompt("Delete what between left & right side of text")
			@DeleteText
			const File4 = getFile("")
			for _ in File4 {
				getName(@RepeatItem)
				@Name
				getText(@RepeatItem)
				@GetText
				if @GetText contains @DeleteText {
					replaceText("(\{@LeftSideOfText}.*) {@DeleteText} (.*.*\{@RightSideOfText})", "$1 $2", @GetText, true)
					const Text4 = "{}"
					setName(Text4, @Name)
				}
			}
		item "two different sides of text (no space)":
			prompt("Look for what on left side of text")
			@LeftSideOfText
			prompt("Look for what on right side of text")
			@RightSideOfText
			prompt("Delete what between left & right side of text")
			@DeleteText
			const File4 = getFile("")
			for _ in File4 {
				getName(@RepeatItem)
				@Name
				getText(@RepeatItem)
				@GetText
				if @GetText contains @DeleteText {
					replaceText("(\{@LeftSideOfText}.*){@DeleteText}(.*.*\{@RightSideOfText})", "$1$2", @GetText, true)
					const Text4 = "{}"
					setName(Text4, @Name)
				}
			}
		}
	}
	const SavedFile = saveFilePrompt(MenuResult)
	stop()
}
createFolder("Delete text")
saveFile("Delete text", MenuResult1, true)
show("In folder /Shortcuts/Delete text")
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Mere fra hunter9888x

Se alle

Du vil måske også kunne lide

Se alle
Annonce