• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't Make "File" into Type File
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Can't Make "File" into Type File (From: Brian Cipresse <email@hidden>)

  • Prev by Date: Re: Can't Make "File" into Type File
  • Next by Date: iCal and broken 'event whose' problem
  • Previous by thread: Re: Can't Make "File" into Type File
  • Next by thread: Re: Can't Make "File" into Type File
  • Index(es):
    • Date
    • Thread