Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nathangdavis

macrumors newbie
Original poster
Mar 30, 2011
2
0
Please HELP! I have been racking my brain about this for way too long. I am trying to set a default location and it's giving me an error saying...

File "MEDIA:iMovie Projects:" wasn't found


And the folder is definitely there. Have tried with and without using "as alias"


Without "as alias" it tells me

Can't make "MEDIA:iMovie Projects:" into type alias

Here is my code.


set project to choose file with prompt "Locate the PROJECTS file path and click OK" default location "MEDIA:iMovie Projects"
 
Last edited:
This worked for me:
Code:
[b]set[/b] [color=#408000]project[/color] [b]to[/b] [b][color=#0016b0]choose file[/color][/b] [color=#0016b0]with prompt[/color] "Locate the PROJECTS file path and click OK" [color=#0016b0]default location[/color] [i][color=#0000ff]alias[/color][/i] "MEDIA:iMovie Projects"
 
Trying this gives me the error...


File alias Volumes:MEDIA:iMovie Projects of <<script>> wasn't found.


Also, it works fine when I use this line...

set project to choose file with prompt "Locate the PROJECTS file path and click OK" default location (path to home folder)


But I can't get it to work with variable with the filepath as text or typing the path directly in.

NOTE: My MEDIA drive is the name of my hard drive not a folder.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.