OK last question today... Promise!!! ;-D
OK last question today... Promise!!! ;-D
- Subject: OK last question today... Promise!!! ;-D
- From: Brett Conlon <email@hidden>
- Date: Thu, 17 Nov 2005 15:56:09 +1000
OK,
This works:
################################
property
ServerScriptFolder : "RESOURCES:VIDEO/DVD COVERS:TEMPLATES:PShop Actions"
property
ServerScript : "RESOURCES:VIDEO/DVD COVERS:TEMPLATES:PShop Actions:Create
Packshots ALL 5.2.app"
tell
application "Finder"
set
ServerScriptDate to
modification date of
(info for alias ServerScript)
display
dialog "Date: " & ServerScriptDate
end
tell
################################
But this doesn't:
################################
property
ServerScriptFolder : "RESOURCES:VIDEO/DVD COVERS:TEMPLATES:PShop Actions"
tell
application "Finder"
set
ServerScript to
select (every
item of
folder ServerScriptFolder whose
name begins
with "Create Packshots ALL")
set
ServerScriptDate to
modification date of
(info for alias ServerScript)
display
dialog "Date: " & ServerScriptDate
end
tell
################################
I get the log error:
tell application
"Finder"
select
every
item of
folder "RESOURCES:VIDEO/DVD COVERS:TEMPLATES:PShop Actions" whose
name starts with
"Create Packshots ALL"
application
file "Create Packshots ALL 5.2.app"
of
folder "PShop Actions"
of
folder "TEMPLATES"
of
folder "VIDEO/DVD COVERS"
of
disk "RESOURCES"
info
for alias (application file "Create
Packshots ALL 5.2.app"
of
folder "PShop Actions"
of
folder "TEMPLATES"
of
folder "VIDEO/DVD COVERS"
of
disk "RESOURCES")
"Finder
got an error: File alias (application file Create Packshots ALL 5.2.app)
wasn't found."
I clearly don't understand aliases as
I should. By the look of the log it seems to be finding the file but can't
get info. It specifies it as an "application file" in the last
line - which is different from what the other log (from the working one)
shows.
Help or a bullet to the head would be
appreciated!
Cheers,
Coj _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden