|
|
#1 |
|
Prospect
Join Date: Jun 2012
Posts: 1
|
So basically I'm new to applescript and i need to move/copy files from the path /Users/<user>/Library/Application Support to the desktop. And the reason is that i'm going to be giving this to other people and if i have a specified user it will not work, Also it doesnt matter to me if it is some sophisticated fast script i just need it to work and i need it soon. After looking hours on google only finding ways to specify the user i just need help.
My os x version by the way is 10.6.8 |
|
|
|
|
|
#2 |
|
Major Leaguer
Join Date: Apr 2005
Posts: 477
|
Applescript has tools for this. First you have some learning to do about paths in applescript. To start, in applescript paths are colon ":" delimited and start with the name of the hard drive (not slash "/" delimited as you are showing). So I suggest you do a little learning first.
But to solve your immediate problem... applescript has shortcuts for well defined folders. For the 2 folders you mention... Code:
set desktopFolder to path to desktop as text Code:
set appSupportFolder to path to application support folder from user domain as text |
|
|
|
![]() |
| Tags |
| applescript, os x 10.6.8 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|