Hi,
sorry for bothering, but i need a list of raw codes to shorten the far too long paths we have to write.
path to applications folder from user domain, ect.
Hi,
sorry for bothering, but i need a list of raw codes to shorten the far too long paths we have to write.
path to applications folder from user domain, ect.
Hello.
Nigel Garvey showed me this file that contains the codes you opted for.
/System/Library/Frameworks/CoreServices.framework/Versions/A/
Frameworks/CarbonCore.framework/Versions/A/Headers/Folders.r
(I have broken the path in two intentionally with a new line.)
Hi,
Isn’t the file name folders.h?
gl,
kel
Hello kel.
No, it is “r”.
actually both the .h and the .r files contain the information
The .r file contains the preprocessor macros, the .h file the C enumerations
Hello.
I didn’t think of it.
This works for me:
do shell script "open '/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/'" #Headers/Folders.r
.i have no ‘Headers/Folders.r’ nor ‘Folders.h’ files on my OS, version 10.7.4
are these files auto-generated by some commands i dont use ?
You see tomatoes
it’s in the Headers folder
do shell script "open /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers"
The Headers folder no longer exists on my Mavericks system ” in that location anyway. The codes still seem to work though.
The file /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers does not exist.
10.7.4
I just mounted my Lion Partition, it’s there
the end of the path is .Versions/A/Headers"
Hello I have them, as I installed Mavericks over Snow Leopard, I kept them.
If you have Snow Leopard with developer tools on your time machine Joy, I think you should be able to find it there.
I don’t think the FolderManager from where the codes where from were ever open source, so I guess those codes can be hard to find.
I sent Joy the contents of folders.r by email.
Edit
I guess this is the last version (version 10.9) where the four letter codes work, also for apps, which I find strange, because in some cases the four letter code works better than the URI equivalent.
Hi McUsrII and thanks!
Please re-sent me the file because i had to update my older address. Or, if the file isn’t that long, post it here.
Hello.
I mailed it to you.
I don’t think so.
The consequence would be either Apple will drop AppleScript or have to rewrite the AppleScript layer completely.
The Apple Event Manager as well as Cocoa Scripting depends strongly on those four letter tokens which are actually just integer values
The reason why I say that it is .h is because that what I use when searching for the 4 alpha_numeric codes. I have a duplicate of the header file, but never know where to find it.
Well.
They state in the (partly) new documentation, that they are deprecated, and that you should use URI’s instead. and when the folders.r/folders.h files are deprectated, then I start to believe them. I hope you are right though.
I swear that I read something along those lines, since it isn’t very long since I had a discussion with Shane and DJ Bazzie Wazzie over the issue. (Sorry guys, you were right.)
The header files are these days in the Frameworks stored in Xcode: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/ or similar.