« [PDFKit]PDFファイルのマージ(結合) | トップページ | [Plist]Plistに値を書き込み保存する »

[NSFileManager] NSItemReplacementDirectory と Path to

#!/usr/bin/env osascript
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
#
#
#
#
# com.cocolog-nifty.quicktimer.icefloe
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
##自分環境がos12なので2.8にしているだけです
use AppleScript version "2.8"
use framework "Foundation"
use scripting additions

property objMe : a reference to current application
property objNSString : a reference to objMe's NSString
property objNSURL : a reference to objMe's NSURL

set objFileManager to objMe's NSFileManager's defaultManager()

#########################
##### ALL ドメイン


set ocidUserItemReplacementPath to (objFileManager's URLsForDirectory:(objMe's NSItemReplacementDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserItemReplacementPath as list

set ocidUserAllApplicationsPath to (objFileManager's URLsForDirectory:(objMe's NSAllApplicationsDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserAllApplicationsPath as list
-->リストで入ります

set ocidUserAllLibrariesPath to (objFileManager's URLsForDirectory:(objMe's NSAllLibrariesDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserAllLibrariesPath as list


set ocidUserDirectoryPath to (objFileManager's URLsForDirectory:(objMe's NSUserDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserDirectoryPath as list

set ocidUserPrinterDescriptionPath to (objFileManager's URLsForDirectory:(objMe's NSPrinterDescriptionDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserPrinterDescriptionPath as list


set ocidUserDocumentPath to (objFileManager's URLsForDirectory:(objMe's NSDocumentDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserDocumentPath as list

set ocidUserLibraryPath to (objFileManager's URLsForDirectory:(objMe's NSLibraryDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserLibraryPath as list

set ocidUserAdminApplicationPath to (objFileManager's URLsForDirectory:(objMe's NSAdminApplicationDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserAdminApplicationPath as list

set ocidUserDesktopPath to (objFileManager's URLsForDirectory:(objMe's NSDesktopDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserDesktopPath as list

set ocidUserApplicationSupportPath to (objFileManager's URLsForDirectory:(objMe's NSApplicationSupportDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserApplicationSupportPath as list

set ocidUserDownloadsPath to (objFileManager's URLsForDirectory:(objMe's NSDownloadsDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserDownloadsPath as list

set ocidUserMoviesPath to (objFileManager's URLsForDirectory:(objMe's NSMoviesDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserMoviesPath as list

set ocidUserMusicPath to (objFileManager's URLsForDirectory:(objMe's NSMusicDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserMusicPath as list

set ocidUserPicturesPath to (objFileManager's URLsForDirectory:(objMe's NSPicturesDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserPicturesPath as list

set ocidUserPublicPath to (objFileManager's URLsForDirectory:(objMe's NSSharedPublicDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserPublicPath as list

set ocidUserApplicationPath to (objFileManager's URLsForDirectory:(objMe's NSApplicationDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserApplicationPath as list

set ocidUserTrashPath to (objFileManager's URLsForDirectory:(objMe's NSTrashDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserTrashPath as list

set ocidUserApplicationScriptsPath to (objFileManager's URLsForDirectory:(objMe's NSApplicationScriptsDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserApplicationScriptsPath as list

set ocidUserPreferencePanesPath to (objFileManager's URLsForDirectory:(objMe's NSPreferencePanesDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserPreferencePanesPath as list

set ocidUserInputMethodsPath to (objFileManager's URLsForDirectory:(objMe's NSInputMethodsDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserInputMethodsPath as list

set ocidUserCachesPath to (objFileManager's URLsForDirectory:(objMe's NSCachesDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserCachesPath as list

set ocidUserDeveloperPath to (objFileManager's URLsForDirectory:(objMe's NSDeveloperDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserDeveloperPath as list

set ocidUserDeveloperApplicationPath to (objFileManager's URLsForDirectory:(objMe's NSDeveloperApplicationDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserDeveloperApplicationPath as list

set ocidUserDocumentationDirectoryPath to (objFileManager's URLsForDirectory:(objMe's NSDocumentationDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserDocumentationDirectoryPath as list

set ocidUserAutosavedInformationPath to (objFileManager's URLsForDirectory:(objMe's NSAutosavedInformationDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserAutosavedInformationPath as list

set ocidUserAllApplicationsPath to (objFileManager's URLsForDirectory:(objMe's NSAllApplicationsDirectory) inDomains:(objMe's NSAllDomainsMask))
log ocidUserAllApplicationsPath as list


#########################
##### システムドメイン
set ocidUserItemReplacementPath to (objFileManager's URLsForDirectory:(objMe's NSItemReplacementDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserItemReplacementPath as list

set ocidUserAllApplicationsPath to (objFileManager's URLsForDirectory:(objMe's NSAllApplicationsDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserAllApplicationsPath as list
-->リストで入ります

set ocidUserAllLibrariesPath to (objFileManager's URLsForDirectory:(objMe's NSAllLibrariesDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserAllLibrariesPath as list


set ocidUserDirectoryPath to (objFileManager's URLsForDirectory:(objMe's NSUserDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserDirectoryPath as list

set ocidUserPrinterDescriptionPath to (objFileManager's URLsForDirectory:(objMe's NSPrinterDescriptionDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserPrinterDescriptionPath as list

set ocidUserDocumentPath to (objFileManager's URLsForDirectory:(objMe's NSDocumentDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserDocumentPath as list

set ocidUserLibraryPath to (objFileManager's URLsForDirectory:(objMe's NSLibraryDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserLibraryPath as text

set ocidUserAdminApplicationPath to (objFileManager's URLsForDirectory:(objMe's NSAdminApplicationDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserAdminApplicationPath as text

set ocidUserDesktopPath to (objFileManager's URLsForDirectory:(objMe's NSDesktopDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserDesktopPath as list

set ocidUserApplicationSupportPath to (objFileManager's URLsForDirectory:(objMe's NSApplicationSupportDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserApplicationSupportPath as text

set ocidUserDownloadsPath to (objFileManager's URLsForDirectory:(objMe's NSDownloadsDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserDownloadsPath as list

set ocidUserMoviesPath to (objFileManager's URLsForDirectory:(objMe's NSMoviesDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserMoviesPath as list

set ocidUserMusicPath to (objFileManager's URLsForDirectory:(objMe's NSMusicDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserMusicPath as list

set ocidUserPicturesPath to (objFileManager's URLsForDirectory:(objMe's NSPicturesDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserPicturesPath as list

set ocidUserPublicPath to (objFileManager's URLsForDirectory:(objMe's NSSharedPublicDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserPublicPath as list

set ocidUserApplicationPath to (objFileManager's URLsForDirectory:(objMe's NSApplicationDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserApplicationPath as text

set ocidUserTrashPath to (objFileManager's URLsForDirectory:(objMe's NSTrashDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserTrashPath as list

set ocidUserApplicationScriptsPath to (objFileManager's URLsForDirectory:(objMe's NSApplicationScriptsDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserApplicationScriptsPath as list

set ocidUserPreferencePanesPath to (objFileManager's URLsForDirectory:(objMe's NSPreferencePanesDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserPreferencePanesPath as text

set ocidUserInputMethodsPath to (objFileManager's URLsForDirectory:(objMe's NSInputMethodsDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserInputMethodsPath as text

set ocidUserCachesPath to (objFileManager's URLsForDirectory:(objMe's NSCachesDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserCachesPath as text

set ocidUserDeveloperPath to (objFileManager's URLsForDirectory:(objMe's NSDeveloperDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserDeveloperPath as text

set ocidUserDeveloperApplicationPath to (objFileManager's URLsForDirectory:(objMe's NSDeveloperApplicationDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserDeveloperApplicationPath as text

set ocidUserDocumentationDirectoryPath to (objFileManager's URLsForDirectory:(objMe's NSDocumentationDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserDocumentationDirectoryPath as text

set ocidUserAutosavedInformationPath to (objFileManager's URLsForDirectory:(objMe's NSAutosavedInformationDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserAutosavedInformationPath as list

set ocidUserAllApplicationsPath to (objFileManager's URLsForDirectory:(objMe's NSAllApplicationsDirectory) inDomains:(objMe's NSSystemDomainMask))
log ocidUserAllApplicationsPath as list



#########################
#####ローカル ドメイン

set ocidUserItemReplacementPath to (objFileManager's URLsForDirectory:(objMe's NSItemReplacementDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserItemReplacementPath as list

set ocidUserAllApplicationsPath to (objFileManager's URLsForDirectory:(objMe's NSAllApplicationsDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserAllApplicationsPath as list
-->リストで入ります

set ocidUserAllLibrariesPath to (objFileManager's URLsForDirectory:(objMe's NSAllLibrariesDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserAllLibrariesPath as list


set ocidUserDirectoryPath to (objFileManager's URLsForDirectory:(objMe's NSUserDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserDirectoryPath as list

set ocidUserPrinterDescriptionPath to (objFileManager's URLsForDirectory:(objMe's NSPrinterDescriptionDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserPrinterDescriptionPath as list

set ocidUserPrinterDescriptionPath to (objFileManager's URLsForDirectory:(objMe's NSPrinterDescriptionDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserPrinterDescriptionPath as list

set ocidUserDocumentPath to (objFileManager's URLsForDirectory:(objMe's NSDocumentDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserDocumentPath as list

set ocidUserLibraryPath to (objFileManager's URLsForDirectory:(objMe's NSLibraryDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserLibraryPath as text

set ocidUserAdminApplicationPath to (objFileManager's URLsForDirectory:(objMe's NSAdminApplicationDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserAdminApplicationPath as text

set ocidUserDesktopPath to (objFileManager's URLsForDirectory:(objMe's NSDesktopDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserDesktopPath as list

set ocidUserApplicationSupportPath to (objFileManager's URLsForDirectory:(objMe's NSApplicationSupportDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserApplicationSupportPath as text

set ocidUserDownloadsPath to (objFileManager's URLsForDirectory:(objMe's NSDownloadsDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserDownloadsPath as list

set ocidUserMoviesPath to (objFileManager's URLsForDirectory:(objMe's NSMoviesDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserMoviesPath as list

set ocidUserMusicPath to (objFileManager's URLsForDirectory:(objMe's NSMusicDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserMusicPath as list

set ocidUserPicturesPath to (objFileManager's URLsForDirectory:(objMe's NSPicturesDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserPicturesPath as list

set ocidUserPublicPath to (objFileManager's URLsForDirectory:(objMe's NSSharedPublicDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserPublicPath as list

set ocidUserApplicationPath to (objFileManager's URLsForDirectory:(objMe's NSApplicationDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserApplicationPath as text

set ocidUserTrashPath to (objFileManager's URLsForDirectory:(objMe's NSTrashDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserTrashPath as text
-->ローカルドメインでもゴミ箱はユーザー

set ocidUserApplicationScriptsPath to (objFileManager's URLsForDirectory:(objMe's NSApplicationScriptsDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserApplicationScriptsPath as list

set ocidUserPreferencePanesPath to (objFileManager's URLsForDirectory:(objMe's NSPreferencePanesDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserPreferencePanesPath as text

set ocidUserInputMethodsPath to (objFileManager's URLsForDirectory:(objMe's NSInputMethodsDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserInputMethodsPath as text

set ocidUserCachesPath to (objFileManager's URLsForDirectory:(objMe's NSCachesDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserCachesPath as text

set ocidUserDeveloperPath to (objFileManager's URLsForDirectory:(objMe's NSDeveloperDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserDeveloperPath as text

set ocidUserDeveloperApplicationPath to (objFileManager's URLsForDirectory:(objMe's NSDeveloperApplicationDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserDeveloperApplicationPath as text

set ocidUserDocumentationDirectoryPath to (objFileManager's URLsForDirectory:(objMe's NSDocumentationDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserDocumentationDirectoryPath as text

set ocidUserAutosavedInformationPath to (objFileManager's URLsForDirectory:(objMe's NSAutosavedInformationDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserAutosavedInformationPath as list

set ocidUserAllApplicationsPath to (objFileManager's URLsForDirectory:(objMe's NSAllApplicationsDirectory) inDomains:(objMe's NSLocalDomainMask))
log ocidUserAllApplicationsPath as list

########################################
#####ユーザードメイン

set ocidUserDocumentPath to (objFileManager's URLsForDirectory:(objMe's NSDocumentDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserDocumentPath as text

set ocidUserLibraryPath to (objFileManager's URLsForDirectory:(objMe's NSLibraryDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserLibraryPath as text

set ocidUserAdminApplicationPath to (objFileManager's URLsForDirectory:(objMe's NSAdminApplicationDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserAdminApplicationPath as text

set ocidUserDesktopPath to (objFileManager's URLsForDirectory:(objMe's NSDesktopDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserDesktopPath as text

set ocidUserApplicationSupportPath to (objFileManager's URLsForDirectory:(objMe's NSApplicationSupportDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserApplicationSupportPath as text

set ocidUserDownloadsPath to (objFileManager's URLsForDirectory:(objMe's NSDownloadsDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserDownloadsPath as text

set ocidUserMoviesPath to (objFileManager's URLsForDirectory:(objMe's NSMoviesDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserMoviesPath as text

set ocidUserMusicPath to (objFileManager's URLsForDirectory:(objMe's NSMusicDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserMusicPath as text

set ocidUserPicturesPath to (objFileManager's URLsForDirectory:(objMe's NSPicturesDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserPicturesPath as text

set ocidUserPublicPath to (objFileManager's URLsForDirectory:(objMe's NSSharedPublicDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserPublicPath as text

set ocidUserApplicationPath to (objFileManager's URLsForDirectory:(objMe's NSApplicationDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserApplicationPath as text

set ocidUserTrashPath to (objFileManager's URLsForDirectory:(objMe's NSTrashDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserTrashPath as text

set ocidUserApplicationScriptsPath to (objFileManager's URLsForDirectory:(objMe's NSApplicationScriptsDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserApplicationScriptsPath as text

set ocidUserPreferencePanesPath to (objFileManager's URLsForDirectory:(objMe's NSPreferencePanesDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserPreferencePanesPath as text

set ocidUserInputMethodsPath to (objFileManager's URLsForDirectory:(objMe's NSInputMethodsDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserInputMethodsPath as text

set ocidUserCachesPath to (objFileManager's URLsForDirectory:(objMe's NSCachesDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserCachesPath as text

set ocidUserDeveloperPath to (objFileManager's URLsForDirectory:(objMe's NSDeveloperDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserDeveloperPath as text

set ocidUserDeveloperApplicationPath to (objFileManager's URLsForDirectory:(objMe's NSDeveloperApplicationDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserDeveloperApplicationPath as text

set ocidUserDocumentationDirectoryPath to (objFileManager's URLsForDirectory:(objMe's NSDocumentationDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserDocumentationDirectoryPath as text

set ocidUserAutosavedInformationPath to (objFileManager's URLsForDirectory:(objMe's NSAutosavedInformationDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserAutosavedInformationPath as text

set ocidUserAllApplicationsPath to (objFileManager's URLsForDirectory:(objMe's NSAllApplicationsDirectory) inDomains:(objMe's NSUserDomainMask))
log ocidUserAllApplicationsPath as list
-->リストで入ります


#!/usr/bin/env osascript
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
#
#
#
#
# com.cocolog-nifty.quicktimer.icefloe
----+----1----+----2----+-----3----+----4----+----5----+----6----+----7
##自分環境がos12なので2.8にしているだけです
use AppleScript version "2.8"
use framework "Foundation"
use scripting additions


######システム ドメイン
set aliasApplicationsFolder to path to applications folder from system domain as alias
set aliasDesktopPicturesFolder to path to desktop pictures folder from system domain as alias
set aliasFonts to path to fonts folder from system domain as alias
set aliasHelp to path to help folder from system domain as alias
set aliasHomeFolder to path to home folder from system domain as alias
set aliasKeychainFolder to path to keychain folder from system domain as alias
set aliasLibraryFolder to path to library folder from system domain as alias
set aliasModemSripts to path to modem scripts folder from system domain as alias
set aliasPreferences to path to preferences folder from system domain as alias
set aliasScriptingAdditions to path to scripting additions from system domain as alias
set aliasServicesFolder to path to services folder from system domain as alias
set aliasSharedDocuments to path to shared documents from system domain as alias
set aliasStartupDisk to path to startup disk from system domain as alias
set aliasStartupItems to path to startup items from system domain as alias
set aliasSystemFolder to path to system folder from system domain as alias
set aliasSystemPreferences to path to system preferences from system domain as alias
set aliasTemporaryItems to path to temporary items from system domain as alias
set aliasUsersFolder to path to users folder from system domain as alias
set aliasUtilitiesFolder to path to utilities folder from system domain as alias

######ローカル ドメイン
set aliasApplicationSupport to path to application support folder from local domain as alias
set aliasApplicationsFolder to path to applications folder from local domain as alias
set aliasFolderActionscripts to path to Folder Action scripts from local domain as alias
set aliasFonts to path to fonts folder from local domain as alias
set aliasHelp to path to help folder from local domain as alias
set aliasHomeFolder to path to home folder from local domain as alias
set aliasInternetPlugins to path to internet plugins folder from local domain as alias
set aliasKeychainFolder to path to keychain folder from local domain as alias
set aliasLibraryFolder to path to library folder from local domain as alias
set aliasModemSripts to path to modem scripts folder from local domain as alias
set aliasPreferences to path to preferences folder from local domain as alias
set aliasPrinterDescriptions to path to printer descriptions from local domain as alias
set aliasScriptingAdditions to path to scripting additions from local domain as alias
set aliasScriptsFolder to path to scripts folder from local domain as alias
set aliasSharedDocuments to path to shared documents from local domain as alias
set aliasStartupDisk to path to startup disk from local domain as alias
set aliasStartupItems to path to startup items from local domain as alias
set aliasSystemFolder to path to system folder from local domain as alias
set aliasSystemPreferences to path to system preferences from local domain as alias
set aliasTemporaryItems to path to temporary items from local domain as alias
set aliasUsersFolder to path to users folder from local domain as alias
set aliasUtilitiesFolder to path to utilities folder from local domain as alias

######ユーザードメイン
set aliasApplicationSupport to path to application support folder from user domain as alias
set aliasApplicationsFolder to path to applications folder from user domain as alias
set aliasDesktop to path to desktop folder from user domain as alias
set aliasDesktopPicturesFolder to path to desktop pictures folder from user domain as alias
set aliasDocumentsFolder to path to documents folder from user domain as alias
set aliasDownloadsFolder to path to downloads folder from user domain as alias
set aliasFavoritesFolder to path to favorites folder from user domain as alias
set aliasFolderActionscripts to path to Folder Action scripts from user domain as alias
set aliasFonts to path to fonts folder from user domain as alias
set aliasHelp to path to help folder from user domain as alias
set aliasHomeFolder to path to home folder from user domain as alias
set aliasInternetPlugins to path to internet plugins folder from user domain as alias
set aliasKeychainFolder to path to keychain folder from user domain as alias
set aliasLibraryFolder to path to library folder from user domain as alias
set aliasModemSripts to path to modem scripts folder from user domain as alias
set aliasMoviesFolder to path to movies folder from user domain as alias
set aliasMusicFolder to path to music folder from user domain as alias
set aliasPicturesFolder to path to pictures folder from user domain as alias
set aliasPreferences to path to preferences folder from user domain as alias
set aliasPrinterDescriptions to path to printer descriptions from user domain as alias
set aliasPublicFolder to path to public folder from user domain as alias
set aliasScriptingAdditions to path to scripting additions from user domain as alias
set aliasScriptsFolder to path to scripts folder from user domain as alias
set aliasServicesFolder to path to services folder from user domain as alias
set aliasSharedDocuments to path to shared documents from user domain as alias
set aliasSharedLibraries to path to shared libraries from user domain as alias
set aliasSitesFolder to path to sites folder from user domain as alias
set aliasStartupDisk to path to startup disk from user domain as alias
set aliasStartupItems to path to startup items from user domain as alias
set aliasSystemFolder to path to system folder from user domain as alias
set aliasSystemPreferences to path to system preferences from user domain as alias
set aliasTemporaryItems to path to temporary items from user domain as alias
set aliasTrash to path to trash folder from user domain as alias
set aliasUsersFolder to path to users folder from user domain as alias
set aliasUtilitiesFolder to path to utilities folder from user domain as alias
set aliasWorkflowsFolder to path to workflows folder from user domain as alias

|

« [PDFKit]PDFファイルのマージ(結合) | トップページ | [Plist]Plistに値を書き込み保存する »

AppleScript NSFileManager」カテゴリの記事