Тёмный

AppleScript Tutorial : Alias, HFS & POSIX - OH MY! 

ClickingKeys
Подписаться 1,2 тыс.
Просмотров 1,8 тыс.
50% 1

Learn how to AppleScript, Apple's built in automation platform. In this video we'll dig deeper into file references, file aliases, HFS file paths and POSIX file paths. You'll see what the differences are as well as how to convert from one form to another.
HFS = Hierarchical File System, Apple's file system
POSIX = Portable Operating System Interface, Unix based file path
-- -- -- -- -- -- -- START EXAMPLE SCRIPT CODE -- -- -- -- -- -- --
on run
set posixPath to "/Users/clickingkeys/Desktop/Demo_1.jpg" # EXAMPLE OF A POSIX PATH
log "Example POSIX path"
log posixPath
set hfsFilePath to POSIX file posixPath # CONVERTS A POSIX PATH TO AN HFS FILE REFERENCE
log "Example HFS file reference"
log hfsFilePath
set hfsPath to POSIX file posixPath as string # CONVERTS A POSIX PATH TO AN HFS FILE PATH
log "Example HFS path"
log hfsPath
set aliasExample to hfsPath as alias
log "Example Alias"
log aliasExample
set backToPosix to POSIX path of hfsPath # THIS WILL CONVERT AN HFS PATH TO A POSIX PATH
log "Example POSIX path 2"
log backToPosix
end run
-- -- -- -- -- -- -- END EXAMPLE SCRIPT CODE -- -- -- -- -- -- --
For more AppleScript tutorial videos, check out this play list.
• Learn to AppleScript (...
If you're interested in watching full scripts being written, have a look at this play list.
• AppleScript Project Ex...

Хобби

Опубликовано:

 

5 янв 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@dekyras
@dekyras Год назад
Another excellent instructional video. Only just discovered these but they are the best AppleScript tutorials I've found. Only comment would be that audio seems quite muted - easily rectified by increasing the volume - as long as I remember to turn it down for the next video! :-)
@Rocadamis
@Rocadamis Год назад
I have been searching for just such a channel. Thank you for the work you do here. I am subscribing!
@writetoyourdestiny
@writetoyourdestiny Год назад
Very good lessons, thank you!
@jimalix6270
@jimalix6270 2 года назад
You seem to have lots of valuable information to offer, but your presentation seems so fast to me that I have a really hard time following it. I'm not a complete noobie, and I still have trouble. Thanks for taking the time to do this series, though. I'll try watching the video again and again until I get it!
@ClickingKeys
@ClickingKeys 2 года назад
Thanks for the feedback Jim. I’ll make a note of that as I create new videos and try and slow my pace down a little.
@brianjmorrissey
@brianjmorrissey 2 года назад
This is fantastic! Do you have any recommendations for learning materials for AppleScript? I'm new to the language and want to learn more. Would you requests for new videos?
@ClickingKeys
@ClickingKeys 2 года назад
Thanks Brian! I’m always interested in hearing what people would like to see. If you have ideas or requests I’d be happy to hear them. Apple’s developer site is a great resource for materials on AppleScript.
@brianjmorrissey
@brianjmorrissey 2 года назад
@@ClickingKeys I'd love to see something like grabbing a file in a folder by latest modification date and assigning it to a variable?
@ClickingKeys
@ClickingKeys 2 года назад
@@brianjmorrissey in the most recent video series I just released (AppleScript Numbers parts 1 and 2), you’ll see a similar process, but it doesn’t focus on a single file by modification date. For now, that would be a good start though until I get something pulled together that illustrates exactly what you’re talking about.
@brianjmorrissey
@brianjmorrissey 2 года назад
@@ClickingKeys Thanks, I'll check it out!
@ClickingKeys
@ClickingKeys 2 года назад
@@brianjmorrissey - Good news! I've completed a video specific to your request of selecting the most recently modified file from a folder and putting that file path into a variable. You can find it here... ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-sbXH-mJm_bs.html
Далее
AppleScript Tutorial : Handlers (aka Functions)
5:21
Просмотров 3,7 тыс.
AppleScript Tutorial : Data Types
11:34
Просмотров 3,9 тыс.
Наше обычное утро 💕
00:42
Просмотров 422 тыс.
КРАСИМ ДЕНЬГИ В РОЗОВЫЙ!
01:01
Просмотров 363 тыс.
AppleScript Tutorial : Error Handling
6:56
Просмотров 1,7 тыс.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Stow has forever changed the way I manage my dotfiles
8:09
The moment we stopped understanding AI [AlexNet]
17:38
Просмотров 784 тыс.
AppleScript Tutorial : Repeat Loops
3:44
Просмотров 2,9 тыс.
Цены на технику в Tg: @iroom_market
0:17
МОЖЕТ ЛИ УКУСИТЬ СОБАКА
0:14
Просмотров 1,2 млн