V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
movq
V2EX  ›  macOS

macOS 有没有办法在弹出文件选择对话框的时候,使用 Finder 里面已经开启的窗口,而不是慢慢选择到目标窗口

  •  
  •   movq · 2021-08-25 10:05:54 +08:00 · 1471 次点击
    这是一个创建于 968 天前的主题,其中的信息可能已经有所发展或是发生改变。

    现在已知的方法是使用 shift+command+G 来跳转

    6 条回复    2021-08-26 03:45:15 +08:00
    forelegance
        1
    forelegance  
       2021-08-25 10:14:10 +08:00
    不能,看 applescript 支持的参数,可以定义默认路径,但不能配置当前 finder 路径。
    sayMore
        2
    sayMore  
       2021-08-25 10:17:26 +08:00   ❤️ 1
    可以把当前已经开启的窗口的文件拖进去,就能直接定位到了。
    bao3
        3
    bao3  
       2021-08-25 10:21:35 +08:00
    如楼上 2# 所说,你拖到弹出的对话框就行了。
    newage126
        4
    newage126  
       2021-08-25 10:35:51 +08:00
    Default Folder X 是你需要的
    minamike
        5
    minamike  
       2021-08-25 11:00:42 +08:00
    AppleScript 绑定快捷键,又不是不能用.jpg
    ```
    tell application "System Events" to set frontmostProcess to first process where it is frontmost
    tell application "Finder"
    if exists Finder window 1 then
    set currentDir to target of Finder window 1 as alias
    else
    set currentDir to desktop as alias
    end if
    end tell
    set the clipboard to POSIX path of currentDir

    tell application (path to frontmost application as text) to activate
    delay 0.1
    tell application "System Events"
    keystroke "/"
    delay 0.1
    keystroke "v" using command down
    keystroke return
    end tell
    ```
    ooops
        6
    ooops  
       2021-08-26 03:45:15 +08:00 via iPhone
    直接用已经开的窗口把文件拖进去呗
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5422 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 06:38 · PVG 14:38 · LAX 23:38 · JFK 02:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.