Re: Can't Make "File" into Type File
Re: Can't Make "File" into Type File
- Subject: Re: Can't Make "File" into Type File
- From: Ed Stockly <email@hidden>
- Date: Sun, 17 Feb 2008 01:09:35 -0800
-- This method works, but I don't want to use it --set myFile to (choose file with prompt "Select a file to read:")
When you use this method, the variable myFile is an alias, which appleScript uses as a reference to the file.
-- This method does NOT work, but I wish to use it set myFile to "ProDeuxHD:Users:Cippage:Music:NotAdded:Not Added.m3u"
When you try to use this method, the variable myFile is a string, which could be coreced to a useable file reference, but, by itself, is just a collection of text characters.
set myFile to file "ProDeuxHD:Users:Cippage:Music:NotAdded:Not Added.m3u"set myFile to alias "ProDeuxHD:Users:Cippage:Music:NotAdded:Not Added.m3u"set myFile to "ProDeuxHD:Users:Cippage:Music:NotAdded:Not Added.m3u" as alias Any of those would work.
HTH,
ES =
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden