N nelly22 macrumors 6502 Original poster Sep 29, 2009 366 5 Mar 16, 2013 #1 Is there any way in AppleScript/Unix to get path to virtual memory folder (/private/var/vm), similar way than (path to desktop)? We have many Macs and some Macs keep virtual memory in non standard place.
Is there any way in AppleScript/Unix to get path to virtual memory folder (/private/var/vm), similar way than (path to desktop)? We have many Macs and some Macs keep virtual memory in non standard place.
C cqexbesd macrumors regular Jun 4, 2009 177 45 Germany Mar 16, 2013 #2 Code: ps -axo command | awk '$1 == "/sbin/dynamic_pager" { print $3 }' or maybe Code: xpath "/plist/dict/key[text()='ProgramArguments']/following::array/string[3]/text()" < /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist Neither are terribly robust but depending on your needs might do.
Code: ps -axo command | awk '$1 == "/sbin/dynamic_pager" { print $3 }' or maybe Code: xpath "/plist/dict/key[text()='ProgramArguments']/following::array/string[3]/text()" < /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist Neither are terribly robust but depending on your needs might do.