Post

Replies

Boosts

Views

Activity

Reply to Text location within a AppleScript List
"repeat with x in xList..." returns a reference of array. So, some command accept a reference and other command does not accept it. We have to change the reference into real data. "as string" would be a good way of writing to abbreviate the explanation. However, it may be a way of writing that gives a sense of incongruity to those who emphasize principles. We have to convert or access reference by using "contents of". set aList to {"1", "2", "3", "4", "5"} repeat with i in aList set j to contents of i say j end repeat You can find such a description in AppleScript example blogs... http://piyocast.com/as/search_gcse?q=contents%20of
Topic: App & System Services SubTopic: Core OS Tags:
Mar ’23
Reply to A couple of questions about scripting automation on a Mac
Originally, AppleScript invoked an application's internal functionality through an AppleScript dictionary of terms. Operations such as clicking buttons and operating menus depend on the state of the application being operated, so various know-how is required. It's normal to write out system information as CSV data. All the know-how about GUI Scripting is summarized in an e-book, so it may be helpful. https://piyomarusoft.booth.pm/items/4230018
Mar ’23